{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "from sklearn.datasets import load_boston\n",
    "import matplotlib.pyplot as plt "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 如何从数据中获得信息\n",
    "例如，波士顿房价数据集，如何找出房价与各个因素的关系？如房价与房间数量大致成线性关系，怎么求出该线性函数？怎么判断求出的函数的好坏？"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**1.波士顿房价数据集**\n",
    "\n",
    "反应房价与地理位置、犯罪率、地段等的相关关系"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "\".. _boston_dataset:\\n\\nBoston house prices dataset\\n---------------------------\\n\\n**Data Set Characteristics:**  \\n\\n    :Number of Instances: 506 \\n\\n    :Number of Attributes: 13 numeric/categorical predictive. Median Value (attribute 14) is usually the target.\\n\\n    :Attribute Information (in order):\\n        - CRIM     per capita crime rate by town\\n        - ZN       proportion of residential land zoned for lots over 25,000 sq.ft.\\n        - INDUS    proportion of non-retail business acres per town\\n        - CHAS     Charles River dummy variable (= 1 if tract bounds river; 0 otherwise)\\n        - NOX      nitric oxides concentration (parts per 10 million)\\n        - RM       average number of rooms per dwelling\\n        - AGE      proportion of owner-occupied units built prior to 1940\\n        - DIS      weighted distances to five Boston employment centres\\n        - RAD      index of accessibility to radial highways\\n        - TAX      full-value property-tax rate per $10,000\\n        - PTRATIO  pupil-teacher ratio by town\\n        - B        1000(Bk - 0.63)^2 where Bk is the proportion of blacks by town\\n        - LSTAT    % lower status of the population\\n        - MEDV     Median value of owner-occupied homes in $1000's\\n\\n    :Missing Attribute Values: None\\n\\n    :Creator: Harrison, D. and Rubinfeld, D.L.\\n\\nThis is a copy of UCI ML housing dataset.\\nhttps://archive.ics.uci.edu/ml/machine-learning-databases/housing/\\n\\n\\nThis dataset was taken from the StatLib library which is maintained at Carnegie Mellon University.\\n\\nThe Boston house-price data of Harrison, D. and Rubinfeld, D.L. 'Hedonic\\nprices and the demand for clean air', J. Environ. Economics & Management,\\nvol.5, 81-102, 1978.   Used in Belsley, Kuh & Welsch, 'Regression diagnostics\\n...', Wiley, 1980.   N.B. Various transformations are used in the table on\\npages 244-261 of the latter.\\n\\nThe Boston house-price data has been used in many machine learning papers that address regression\\nproblems.   \\n     \\n.. topic:: References\\n\\n   - Belsley, Kuh & Welsch, 'Regression diagnostics: Identifying Influential Data and Sources of Collinearity', Wiley, 1980. 244-261.\\n   - Quinlan,R. (1993). Combining Instance-Based and Model-Based Learning. In Proceedings on the Tenth International Conference of Machine Learning, 236-243, University of Massachusetts, Amherst. Morgan Kaufmann.\\n\""
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data = load_boston()\n",
    "X, y = data['data'], data['target']\n",
    "data['DESCR']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array(['CRIM', 'ZN', 'INDUS', 'CHAS', 'NOX', 'RM', 'AGE', 'DIS', 'RAD',\n",
       "       'TAX', 'PTRATIO', 'B', 'LSTAT'], dtype='<U7')"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "data['feature_names']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "((506, 13), (506,))"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "X.shape, y.shape"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD2CAYAAAD24G0VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U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KaiLwpIn8Y9XoKd4M/AJDnVWVvBPAjpdQdi/9O9HpAaSIitwP4e0qpA70eS1oopb7vfp4A3gTwn3s8pLT4KoAXF73NnxKRvHq5/wOAf6+Uuh3A3xeRO8Je3PfCLSJbAXwI4P1ejyVFNgH4soj8QkSeF5HcLqAhIg4aIvaOiPzjXo8nbUSkDGCVUiqvTe//FsDnRaQE4BoA7/Z4PGnxDwC8tfjz3wC4OuzFfS3cIrIcwDcB7Oj1WFLmzwHcqZS6GYAD4Ld7PJ40+R0A/wfA7wO4WUS+1uPxpM1jAL7f60GkyP8EcC2AfwPg/wI439vhpMYrAJ5eTO99CcB/D3txXws3GoL9PaVUtdcDSZlfKqX+evHnaQCf6+VgUmYUwHNKqfcBvABgS4/HkxoiMoDG8b3R46GkydMA/pVS6tsATgH4Zz0eTyoopXYD+DMA/wLAD5RSH4S9vt+F+04Aj4nIGwA2ish/6fF40uKHIjIiIgUA4wCO93pAKfKXAD67+PMY7Ghw1i63A/i5yvdkjCEAGxb/dm8BkOdjPQZgDYDvRr2QE3AWEZE3Fgs9uUNEPg/gTwEIgP1KqW/0eEipISKfAvDHAFahkRZ6QClV6e2o0kFEfg/AtFLq1V6PJS1E5GYAf4JGuuRnAP5JVDRqKyKyC8BfKqV+GPlaCjchhNhFv6dKCCHEOijchBBiGRRuQgixDAo3IYRYBoWbEEIsg8JNCCGW8f8BsHJdPy+EEkwAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "%matplotlib inline\n",
    "# 房间数与房价的关系示意图\n",
    "\n",
    "def draw_rm_and_price():\n",
    "    plt.scatter(X[:, 5], y)\n",
    "\n",
    "\n",
    "draw_rm_and_price()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**2.从图中看房价与房间数量大致呈线性关系，怎么求出该关系？**\n",
    "- 随机生成线性函数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "/home/yangbin7/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py:211: RuntimeWarning: Glyph 8722 missing from current font.\n",
      "  font.set_text(s, 0.0, flags=flags)\n",
      "/home/yangbin7/anaconda3/lib/python3.7/site-packages/matplotlib/backends/backend_agg.py:180: RuntimeWarning: Glyph 8722 missing from current font.\n",
      "  font.set_text(s, 0, flags=flags)\n"
     ]
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAD2CAYAAADcUJy6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3df5AU55kf8O+zwyAPyLcLJaIzK9Zgl4LKiB9rbVko2DmBfOYUQLfGDjpbvvgSxZQTXVwIZ8tLSRaLjjutDgupfFdygiP/yElRWGS8xw87qE6gi0KMLov5FRKoOxcCvLLq8MGSEozEMPvmj5leenq6e7p73v45308VBQw7092zyzNvP+/zPq8opUBERNnTFvcJEBFROBjgiYgyigGeiCijGOCJiDKKAZ6IKKMmxX0ChltuuUXNnj077tMgIkqVw4cP/1opNcPu3xIT4GfPno2RkZG4T4OIKFVE5KzTvzFFQ0SUUQzwREQZxQBPRJRRDPBERBnFAE9ElFGJqaKh+A0fGcWWfafx9lgRMzsK6Fs+F73dnXGfVmA6ryfK96bVz9t4ndGxInIiKCs18fuUfBuK18ehFJATwRfunoXNvfObOrbdcwGEdi2dEf7fkqR0k+zp6VEsk4zP8JFRbNh5AsVSeeKxQj6Hp1bPT2WQ13k9Ub43rX7edq/TyJKPTsfPz10OdGy74+VzAiigNH4jNuq+Fp3fBxE5rJTqsfs3pmgIQGW0Yv1BLJbK2LLvd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i8Z6WfiPwJgBGl1M64zyUMIvIJAN9HJU3zMwCf9TPCTQsR2QTg75RSf+HreQzwRETZxBQNEVFGMcATEWUUAzwRUUYxwBMRZRQDPBFRRjHAExFl1P8H0oOQHFEefTsAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "import random\n",
    "\n",
    "\n",
    "def price(rm, k, b):\n",
    "    return k * rm + b\n",
    "\n",
    "def plot():\n",
    "    X_rm = X[:, 5]\n",
    "    k = random.randint(-100, 100)\n",
    "    b = random.randint(-100, 100)\n",
    "    price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "\n",
    "    draw_rm_and_price()\n",
    "    plt.scatter(X_rm, price_by_random_k_and_b)\n",
    "\n",
    "plot()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAXgAAAD2CAYAAADcUJy6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3df5Bc1XUn8O+ZVgu3JJdGCrPsMtZYmGVRGYM0ZgpEBClJBmOCYceAraIgWW9+KNmwToFdqgwFBuFQsWLFhmx2cUVZ7LCGEIkfngiLLMQGYla2sGc8Eoq8UMQBhBtTliONvEgNas2c/aP7zbx5/X73fT/69fdTRTHTPd3vvh7Nefede++5oqogIqLi6cm6AURElAwGeCKigmKAJyIqKAZ4IqKCYoAnIiqoeVk3wHLqqafq8uXLs24GEVFHGR8f/4Wq9rk9l5sAv3z5coyNjWXdDCKijiIir3s9xxQNEVFBMcATERUUAzwRUUExwBMRFRQDPBFRQeVmFg1lb3Siiq1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nMm5KUu4E8Puq+gUALwH4zxm3x7jmfhp/D+B3ADygqm+HfS0DfDSXArhJRJ4DsEpE/mfG7UnCN0RkpYiUAAwD2Jd1gxLyzwA+0Px6CECnFLqL6hIAL2hxF7wsAXBu89/rhQCKep57AQwA+EqUF3GhU0wi8lxz8KpQRORDAP4GgADYqaq3ZdykRIjIewF8DY1S1mUA16lq1f9VnUdE/gTAmKo+nnVbkiAiFwD4Ohppmu8D+ESUHm6nEJG7APyzqn4j0usY4ImIiokpGiKigmKAJyIqKAZ4IqKCYoAnIiooBngiooJigCciKqj/D1gJmHR831VBAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "plot()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**3.随机生成函数差别比较大。如何评价生成的不同的函数的优劣？**\n",
    "- 损失函数"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "180805.02036521744"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "def loss(y, y_hat):\n",
    "    return sum((y_i - y_hat_i)**2\n",
    "               for y_i, y_hat_i in zip(list(y), list(y_hat))) / len(list(y))\n",
    "\n",
    "\n",
    "X_rm = X[:, 5]\n",
    "k = random.randint(-100, 100)\n",
    "b = random.randint(-100, 100)\n",
    "price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "loss(y, price_by_random_k_and_b)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**4.从随机生成的函数中选择最优的那个，即损失函数值最小的那个**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 0, get best_k: -67 best_b: -15, and the loss is: 213214.05636202174\n",
      "When time is : 3, get best_k: 16 best_b: 72, and the loss is: 22573.447051446663\n",
      "When time is : 4, get best_k: 21 best_b: -24, and the loss is: 7414.111675349801\n",
      "When time is : 11, get best_k: 31 best_b: -95, and the loss is: 6253.733585310277\n",
      "When time is : 15, get best_k: 9 best_b: 30, and the loss is: 4143.306128867587\n",
      "When time is : 28, get best_k: 17 best_b: -36, and the loss is: 2407.8007805988113\n",
      "When time is : 48, get best_k: 7 best_b: -54, and the loss is: 1104.6530982272723\n",
      "When time is : 76, get best_k: 12 best_b: -66, and the loss is: 219.79886396837955\n",
      "When time is : 126, get best_k: 18 best_b: -89, and the loss is: 85.1384949169961\n",
      "When time is : 733, get best_k: 15 best_b: -72, and the loss is: 60.80833512845851\n",
      "When time is : 806, get best_k: 12 best_b: -55, and the loss is: 52.22060309881422\n",
      "When time is : 1840, get best_k: 11 best_b: -45, and the loss is: 47.92938870948614\n",
      "When time is : 4141, get best_k: 11 best_b: -46, and the loss is: 45.733044835968386\n",
      "When time is : 4381, get best_k: 8 best_b: -28, and the loss is: 44.26439962055332\n",
      "When time is : 4817, get best_k: 9 best_b: -34, and the loss is: 43.6065241245059\n"
     ]
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "\n",
    "min_loss = float('inf')\n",
    "best_k, best_b = None, None\n",
    "\n",
    "for i in range(100000):\n",
    "    k = random.randint(-100, 100)\n",
    "    b = random.randint(-100, 100)\n",
    "    price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "    current_loss = loss(y, price_by_random_k_and_b)\n",
    "    if current_loss < min_loss:\n",
    "        min_loss = current_loss\n",
    "        best_b, best_k = b, k\n",
    "        print(\n",
    "            'When time is : {}, get best_k: {} best_b: {}, and the loss is: {}'\n",
    "            .format(i, best_k, best_b, min_loss))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.collections.PathCollection at 0x7fa067cb4190>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD2CAYAAAD24G0VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO2de3gc9XnvP++uRvbK5Fjm4EIRNjh5KJwY32KFwGNIgUAIBVzFEDshhKYhpS05STCNW1NSkF0oTpwASfuYxhzcck1RuCg2TgoNJin2KSRSZAROTZtwc5bkYGpLKVhYa+l3/ljNenc1s3PZnd2d3ffzPH4kze7M/GbW+/298/7eixhjUBRFUeJDotYDUBRFUYKhwq0oihIzVLgVRVFihgq3oihKzFDhVhRFiRktUZ/gqKOOMieccELUp1EURWko+vv73zTGzHR6LXLhPuGEE+jr64v6NIqiKA2FiLzq9pq6ShRFUWKGCreiKErMUOFWFEWJGSrciqIoMUOFW1EUJWZEHlWi1J7egTTrH3+R14dGOLY9xarzT6JrUUethxWaSl5PNe9Ns4/bPk56aISkCGPG5H62WQlGDo1jDCRF+MQHZnFT17yyzu20L1DRz2DNll3sP5ABoD1l0b10blW+W1KqOqCItAAvTfwD+DxwKfB7wI+NMZ/zOkFnZ6fRcMDa0TuQ5rpHnmckM5bblrKS3LJsXizFu5LXU8170+zjdjqOF0vecyQ/fW041LmdzmclBQxkxg9rXjmfwaqHniMzVqifVkJY/7EFFfkcRKTfGNPp9JqXq2Q+8G1jzFnGmLOAVuAM4FTgDRE5t+zRKZGy/vEXJ31ZRjJjrH/8xRqNqDwqeT3VvDfNPm6n43ix4xf7Qp/b6XyZMVMg2kGO53T8YtGG7KRQje+Wl3CfBlwkIj8WkbuADwEPm6yZ/jhwptNOInKViPSJSN/evXsrO2IlEK8PjQTaXu9U8nqqeW+afdyVHJufYwU5XyU/g7DHC4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bjiYJ7RWSBiCSBLuC5Wg8oIn4OvHvi907iVeAsCGcCz5rGTcSYAcyb+P/6AaBRr3MnMBu4NchOmoBThIj8cGLRp6EQkVOABwABNhtjrq/xkCJBRN4FbAKOJusSutQYk67tqCqPiPwN0GeMeaTWY4kCETkV+Aey7pJ/Az4axCKNCyKyBvi5MebeQPupcCuKosQLdZUoiqLEDBVuRVGUmKHCrSiKEjNUuBVFUWKGCreiKErMUOFWFEWJGf8f7yqTFYHe5kQAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "k = best_k\n",
    "b = best_b\n",
    "price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "\n",
    "draw_rm_and_price()\n",
    "plt.scatter(X_rm, price_by_random_k_and_b)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**5.从随机生成中选择的最优拟合效果比较好，但随机选择方法没有方向性，可能做了大量无用功**\n",
    "- 方向调整：\n",
    "    - 线性函数两个参数 $k$ 和 $b$， $k$ 可能增大或减小，$b$ 同理\n",
    "    - 随机最开始的参数后，指定 $k$ 和 $b$ 的变化方向；若后续损失函数减小，则保持该方向变化；否者重新选择变化方向\n",
    "    - 不再总是是随机的选择参数，而是带一定的方向"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 0, get best_k: 30.71527191692818 best_b: 94.47921798541464, and the loss is: 70488.5059132798\n",
      "When time is : 2, get best_k: 30.61527191692818 best_b: 94.37921798541464, and the loss is: 70100.8543048504\n",
      "When time is : 3, get best_k: 30.515271916928178 best_b: 94.27921798541465, and the loss is: 69714.2738682885\n",
      "When time is : 4, get best_k: 30.415271916928177 best_b: 94.17921798541465, and the loss is: 69328.76460359394\n",
      "When time is : 5, get best_k: 30.315271916928175 best_b: 94.07921798541466, and the loss is: 68944.326510767\n",
      "When time is : 6, get best_k: 30.215271916928174 best_b: 93.97921798541466, and the loss is: 68560.95958980753\n",
      "When time is : 7, get best_k: 30.115271916928172 best_b: 93.87921798541467, and the loss is: 68178.66384071544\n",
      "When time is : 8, get best_k: 30.01527191692817 best_b: 93.77921798541468, and the loss is: 67797.43926349084\n",
      "When time is : 9, get best_k: 29.91527191692817 best_b: 93.67921798541468, and the loss is: 67417.28585813374\n",
      "When time is : 10, get best_k: 29.815271916928168 best_b: 93.57921798541469, and the loss is: 67038.20362464411\n",
      "When time is : 11, get best_k: 29.715271916928167 best_b: 93.47921798541469, and the loss is: 66660.19256302193\n",
      "When time is : 12, get best_k: 29.615271916928165 best_b: 93.3792179854147, and the loss is: 66283.25267326723\n",
      "When time is : 13, get best_k: 29.515271916928164 best_b: 93.2792179854147, and the loss is: 65907.3839553801\n",
      "When time is : 14, get best_k: 29.415271916928162 best_b: 93.17921798541471, and the loss is: 65532.586409360374\n",
      "When time is : 15, get best_k: 29.31527191692816 best_b: 93.07921798541472, and the loss is: 65158.86003520806\n",
      "When time is : 16, get best_k: 29.21527191692816 best_b: 92.97921798541472, and the loss is: 64786.204832923184\n",
      "When time is : 17, get best_k: 29.115271916928158 best_b: 92.87921798541473, and the loss is: 64414.6208025059\n",
      "When time is : 18, get best_k: 29.015271916928157 best_b: 92.77921798541473, and the loss is: 64044.107943956\n",
      "When time is : 19, get best_k: 28.915271916928155 best_b: 92.67921798541474, and the loss is: 63674.66625727357\n",
      "When time is : 20, get best_k: 28.815271916928154 best_b: 92.57921798541474, and the loss is: 63306.29574245872\n",
      "When time is : 21, get best_k: 28.715271916928153 best_b: 92.47921798541475, and the loss is: 62938.996399511256\n",
      "When time is : 22, get best_k: 28.61527191692815 best_b: 92.37921798541475, and the loss is: 62572.76822843124\n",
      "When time is : 23, get best_k: 28.51527191692815 best_b: 92.27921798541476, and the loss is: 62207.61122921869\n",
      "When time is : 24, get best_k: 28.41527191692815 best_b: 92.17921798541477, and the loss is: 61843.52540187366\n",
      "When time is : 25, get best_k: 28.315271916928147 best_b: 92.07921798541477, and the loss is: 61480.510746396074\n",
      "When time is : 26, get best_k: 28.215271916928145 best_b: 91.97921798541478, and the loss is: 61118.567262785975\n",
      "When time is : 27, get best_k: 28.115271916928144 best_b: 91.87921798541478, and the loss is: 60757.69495104334\n",
      "When time is : 28, get best_k: 28.015271916928143 best_b: 91.77921798541479, and the loss is: 60397.89381116815\n",
      "When time is : 29, get best_k: 27.91527191692814 best_b: 91.6792179854148, and the loss is: 60039.163843160466\n",
      "When time is : 30, get best_k: 27.81527191692814 best_b: 91.5792179854148, and the loss is: 59681.50504702021\n",
      "When time is : 31, get best_k: 27.71527191692814 best_b: 91.4792179854148, and the loss is: 59324.917422747494\n",
      "When time is : 32, get best_k: 27.615271916928137 best_b: 91.37921798541481, and the loss is: 58969.40097034217\n",
      "When time is : 33, get best_k: 27.515271916928135 best_b: 91.27921798541482, and the loss is: 58614.95568980435\n",
      "When time is : 34, get best_k: 27.415271916928134 best_b: 91.17921798541482, and the loss is: 58261.58158113406\n",
      "When time is : 35, get best_k: 27.315271916928133 best_b: 91.07921798541483, and the loss is: 57909.2786443312\n",
      "When time is : 36, get best_k: 27.21527191692813 best_b: 90.97921798541483, and the loss is: 57558.04687939575\n",
      "When time is : 37, get best_k: 27.11527191692813 best_b: 90.87921798541484, and the loss is: 57207.88628632781\n",
      "When time is : 38, get best_k: 27.01527191692813 best_b: 90.77921798541485, and the loss is: 56858.79686512731\n",
      "When time is : 39, get best_k: 26.915271916928127 best_b: 90.67921798541485, and the loss is: 56510.77861579429\n",
      "When time is : 40, get best_k: 26.815271916928126 best_b: 90.57921798541486, and the loss is: 56163.83153832884\n",
      "When time is : 41, get best_k: 26.715271916928124 best_b: 90.47921798541486, and the loss is: 55817.95563273082\n",
      "When time is : 42, get best_k: 26.615271916928123 best_b: 90.37921798541487, and the loss is: 55473.15089900028\n",
      "When time is : 43, get best_k: 26.51527191692812 best_b: 90.27921798541487, and the loss is: 55129.41733713712\n",
      "When time is : 44, get best_k: 26.41527191692812 best_b: 90.17921798541488, and the loss is: 54786.75494714143\n",
      "When time is : 45, get best_k: 26.31527191692812 best_b: 90.07921798541489, and the loss is: 54445.16372901333\n",
      "When time is : 46, get best_k: 26.215271916928117 best_b: 89.97921798541489, and the loss is: 54104.64368275254\n",
      "When time is : 47, get best_k: 26.115271916928116 best_b: 89.8792179854149, and the loss is: 53765.1948083593\n",
      "When time is : 48, get best_k: 26.015271916928114 best_b: 89.7792179854149, and the loss is: 53426.81710583358\n",
      "When time is : 49, get best_k: 25.915271916928113 best_b: 89.67921798541491, and the loss is: 53089.510575175314\n",
      "When time is : 50, get best_k: 25.81527191692811 best_b: 89.57921798541491, and the loss is: 52753.27521638446\n",
      "When time is : 51, get best_k: 25.71527191692811 best_b: 89.47921798541492, and the loss is: 52418.11102946115\n",
      "When time is : 52, get best_k: 25.61527191692811 best_b: 89.37921798541493, and the loss is: 52084.01801440519\n",
      "When time is : 53, get best_k: 25.515271916928107 best_b: 89.27921798541493, and the loss is: 51750.996171216866\n",
      "When time is : 54, get best_k: 25.415271916928106 best_b: 89.17921798541494, and the loss is: 51419.0454998959\n",
      "When time is : 55, get best_k: 25.315271916928104 best_b: 89.07921798541494, and the loss is: 51088.16600044241\n",
      "When time is : 56, get best_k: 25.215271916928103 best_b: 88.97921798541495, and the loss is: 50758.35767285644\n",
      "When time is : 57, get best_k: 25.1152719169281 best_b: 88.87921798541495, and the loss is: 50429.62051713792\n",
      "When time is : 58, get best_k: 25.0152719169281 best_b: 88.77921798541496, and the loss is: 50101.954533286895\n",
      "When time is : 59, get best_k: 24.9152719169281 best_b: 88.67921798541497, and the loss is: 49775.35972130328\n",
      "When time is : 60, get best_k: 24.815271916928097 best_b: 88.57921798541497, and the loss is: 49449.836081187146\n",
      "When time is : 61, get best_k: 24.715271916928096 best_b: 88.47921798541498, and the loss is: 49125.38361293852\n",
      "When time is : 62, get best_k: 24.615271916928094 best_b: 88.37921798541498, and the loss is: 48802.00231655731\n",
      "When time is : 63, get best_k: 24.515271916928093 best_b: 88.27921798541499, and the loss is: 48479.69219204358\n",
      "When time is : 64, get best_k: 24.41527191692809 best_b: 88.179217985415, and the loss is: 48158.45323939737\n",
      "When time is : 65, get best_k: 24.31527191692809 best_b: 88.079217985415, and the loss is: 47838.285458618644\n",
      "When time is : 66, get best_k: 24.21527191692809 best_b: 87.979217985415, and the loss is: 47519.188849707316\n",
      "When time is : 67, get best_k: 24.115271916928087 best_b: 87.87921798541501, and the loss is: 47201.1634126635\n",
      "When time is : 68, get best_k: 24.015271916928086 best_b: 87.77921798541502, and the loss is: 46884.20914748714\n",
      "When time is : 69, get best_k: 23.915271916928084 best_b: 87.67921798541502, and the loss is: 46568.32605417824\n",
      "When time is : 70, get best_k: 23.815271916928083 best_b: 87.57921798541503, and the loss is: 46253.51413273692\n",
      "When time is : 71, get best_k: 23.71527191692808 best_b: 87.47921798541503, and the loss is: 45939.7733831629\n",
      "When time is : 72, get best_k: 23.61527191692808 best_b: 87.37921798541504, and the loss is: 45627.103805456485\n",
      "When time is : 73, get best_k: 23.51527191692808 best_b: 87.27921798541504, and the loss is: 45315.50539961741\n",
      "When time is : 74, get best_k: 23.415271916928077 best_b: 87.17921798541505, and the loss is: 45004.97816564594\n",
      "When time is : 75, get best_k: 23.315271916928076 best_b: 87.07921798541506, and the loss is: 44695.522103541865\n",
      "When time is : 76, get best_k: 23.215271916928074 best_b: 86.97921798541506, and the loss is: 44387.13721330531\n",
      "When time is : 77, get best_k: 23.115271916928073 best_b: 86.87921798541507, and the loss is: 44079.82349493611\n",
      "When time is : 78, get best_k: 23.01527191692807 best_b: 86.77921798541507, and the loss is: 43773.58094843448\n",
      "When time is : 79, get best_k: 22.91527191692807 best_b: 86.67921798541508, and the loss is: 43468.409573800345\n",
      "When time is : 80, get best_k: 22.81527191692807 best_b: 86.57921798541508, and the loss is: 43164.30937103364\n",
      "When time is : 81, get best_k: 22.715271916928067 best_b: 86.47921798541509, and the loss is: 42861.28034013432\n",
      "When time is : 82, get best_k: 22.615271916928066 best_b: 86.3792179854151, and the loss is: 42559.3224811026\n",
      "When time is : 83, get best_k: 22.515271916928064 best_b: 86.2792179854151, and the loss is: 42258.43579393825\n",
      "When time is : 84, get best_k: 22.415271916928063 best_b: 86.17921798541511, and the loss is: 41958.62027864148\n",
      "When time is : 85, get best_k: 22.31527191692806 best_b: 86.07921798541511, and the loss is: 41659.8759352121\n",
      "When time is : 86, get best_k: 22.21527191692806 best_b: 85.97921798541512, and the loss is: 41362.2027636502\n",
      "When time is : 87, get best_k: 22.11527191692806 best_b: 85.87921798541512, and the loss is: 41065.600763955816\n",
      "When time is : 88, get best_k: 22.015271916928057 best_b: 85.77921798541513, and the loss is: 40770.06993612883\n",
      "When time is : 89, get best_k: 21.915271916928056 best_b: 85.67921798541514, and the loss is: 40475.6102801694\n",
      "When time is : 90, get best_k: 21.815271916928054 best_b: 85.57921798541514, and the loss is: 40182.22179607737\n",
      "When time is : 91, get best_k: 21.715271916928053 best_b: 85.47921798541515, and the loss is: 39889.904483852864\n",
      "When time is : 92, get best_k: 21.61527191692805 best_b: 85.37921798541515, and the loss is: 39598.6583434958\n",
      "When time is : 93, get best_k: 21.51527191692805 best_b: 85.27921798541516, and the loss is: 39308.48337500618\n",
      "When time is : 94, get best_k: 21.41527191692805 best_b: 85.17921798541516, and the loss is: 39019.379578384054\n",
      "When time is : 95, get best_k: 21.315271916928047 best_b: 85.07921798541517, and the loss is: 38731.34695362943\n",
      "When time is : 96, get best_k: 21.215271916928046 best_b: 84.97921798541518, and the loss is: 38444.38550074224\n",
      "When time is : 97, get best_k: 21.115271916928045 best_b: 84.87921798541518, and the loss is: 38158.49521972251\n",
      "When time is : 98, get best_k: 21.015271916928043 best_b: 84.77921798541519, and the loss is: 37873.67611057029\n",
      "When time is : 99, get best_k: 20.91527191692804 best_b: 84.67921798541519, and the loss is: 37589.92817328548\n",
      "When time is : 100, get best_k: 20.81527191692804 best_b: 84.5792179854152, and the loss is: 37307.251407868156\n",
      "When time is : 101, get best_k: 20.71527191692804 best_b: 84.4792179854152, and the loss is: 37025.64581431836\n",
      "When time is : 102, get best_k: 20.615271916928037 best_b: 84.37921798541521, and the loss is: 36745.11139263603\n",
      "When time is : 103, get best_k: 20.515271916928036 best_b: 84.27921798541522, and the loss is: 36465.648142821105\n",
      "When time is : 104, get best_k: 20.415271916928035 best_b: 84.17921798541522, and the loss is: 36187.256064873734\n",
      "When time is : 105, get best_k: 20.315271916928033 best_b: 84.07921798541523, and the loss is: 35909.93515879377\n",
      "When time is : 106, get best_k: 20.21527191692803 best_b: 83.97921798541523, and the loss is: 35633.68542458128\n",
      "When time is : 107, get best_k: 20.11527191692803 best_b: 83.87921798541524, and the loss is: 35358.5068622362\n",
      "When time is : 108, get best_k: 20.01527191692803 best_b: 83.77921798541524, and the loss is: 35084.399471758734\n",
      "When time is : 109, get best_k: 19.915271916928027 best_b: 83.67921798541525, and the loss is: 34811.36325314863\n",
      "When time is : 110, get best_k: 19.815271916928026 best_b: 83.57921798541526, and the loss is: 34539.39820640606\n",
      "When time is : 111, get best_k: 19.715271916928025 best_b: 83.47921798541526, and the loss is: 34268.50433153093\n",
      "When time is : 112, get best_k: 19.615271916928023 best_b: 83.37921798541527, and the loss is: 33998.68162852329\n",
      "When time is : 113, get best_k: 19.51527191692802 best_b: 83.27921798541527, and the loss is: 33729.93009738309\n",
      "When time is : 114, get best_k: 19.41527191692802 best_b: 83.17921798541528, and the loss is: 33462.24973811036\n",
      "When time is : 115, get best_k: 19.31527191692802 best_b: 83.07921798541528, and the loss is: 33195.64055070511\n",
      "When time is : 116, get best_k: 19.215271916928018 best_b: 82.97921798541529, and the loss is: 32930.102535167316\n",
      "When time is : 117, get best_k: 19.115271916928016 best_b: 82.8792179854153, and the loss is: 32665.635691497006\n",
      "When time is : 118, get best_k: 19.015271916928015 best_b: 82.7792179854153, and the loss is: 32402.240019694185\n",
      "When time is : 119, get best_k: 18.915271916928013 best_b: 82.6792179854153, and the loss is: 32139.915519758848\n",
      "When time is : 120, get best_k: 18.815271916928012 best_b: 82.57921798541531, and the loss is: 31878.662191690924\n",
      "When time is : 121, get best_k: 18.71527191692801 best_b: 82.47921798541532, and the loss is: 31618.48003549054\n",
      "When time is : 122, get best_k: 18.61527191692801 best_b: 82.37921798541532, and the loss is: 31359.369051157613\n",
      "When time is : 123, get best_k: 18.515271916928008 best_b: 82.27921798541533, and the loss is: 31101.329238692062\n",
      "When time is : 124, get best_k: 18.415271916928006 best_b: 82.17921798541533, and the loss is: 30844.360598094063\n",
      "When time is : 125, get best_k: 18.315271916928005 best_b: 82.07921798541534, and the loss is: 30588.46312936354\n",
      "When time is : 126, get best_k: 18.215271916928003 best_b: 81.97921798541535, and the loss is: 30333.636832500455\n",
      "When time is : 127, get best_k: 18.115271916928002 best_b: 81.87921798541535, and the loss is: 30079.881707504854\n",
      "When time is : 128, get best_k: 18.015271916928 best_b: 81.77921798541536, and the loss is: 29827.19775437671\n",
      "When time is : 129, get best_k: 17.915271916928 best_b: 81.67921798541536, and the loss is: 29575.584973116067\n",
      "When time is : 130, get best_k: 17.815271916927998 best_b: 81.57921798541537, and the loss is: 29325.043363722896\n",
      "When time is : 131, get best_k: 17.715271916927996 best_b: 81.47921798541537, and the loss is: 29075.57292619717\n",
      "When time is : 132, get best_k: 17.615271916927995 best_b: 81.37921798541538, and the loss is: 28827.17366053891\n",
      "When time is : 133, get best_k: 17.515271916927993 best_b: 81.27921798541539, and the loss is: 28579.84556674814\n",
      "When time is : 134, get best_k: 17.415271916927992 best_b: 81.17921798541539, and the loss is: 28333.588644824864\n",
      "When time is : 135, get best_k: 17.31527191692799 best_b: 81.0792179854154, and the loss is: 28088.402894768973\n",
      "When time is : 136, get best_k: 17.21527191692799 best_b: 80.9792179854154, and the loss is: 27844.28831658062\n",
      "When time is : 137, get best_k: 17.115271916927988 best_b: 80.87921798541541, and the loss is: 27601.2449102597\n",
      "When time is : 138, get best_k: 17.015271916927986 best_b: 80.77921798541541, and the loss is: 27359.272675806304\n",
      "When time is : 139, get best_k: 16.915271916927985 best_b: 80.67921798541542, and the loss is: 27118.371613220344\n",
      "When time is : 140, get best_k: 16.815271916927983 best_b: 80.57921798541543, and the loss is: 26878.541722501865\n",
      "When time is : 141, get best_k: 16.715271916927982 best_b: 80.47921798541543, and the loss is: 26639.783003650842\n",
      "When time is : 142, get best_k: 16.61527191692798 best_b: 80.37921798541544, and the loss is: 26402.09545666729\n",
      "When time is : 143, get best_k: 16.51527191692798 best_b: 80.27921798541544, and the loss is: 26165.479081551206\n",
      "When time is : 144, get best_k: 16.415271916927978 best_b: 80.17921798541545, and the loss is: 25929.9338783026\n",
      "When time is : 145, get best_k: 16.315271916927976 best_b: 80.07921798541545, and the loss is: 25695.459846921476\n",
      "When time is : 146, get best_k: 16.215271916927975 best_b: 79.97921798541546, and the loss is: 25462.056987407785\n",
      "When time is : 147, get best_k: 16.115271916927973 best_b: 79.87921798541547, and the loss is: 25229.725299761605\n",
      "When time is : 148, get best_k: 16.015271916927972 best_b: 79.77921798541547, and the loss is: 24998.464783982898\n",
      "When time is : 149, get best_k: 15.915271916927972 best_b: 79.67921798541548, and the loss is: 24768.275440071633\n",
      "When time is : 150, get best_k: 15.815271916927973 best_b: 79.57921798541548, and the loss is: 24539.157268027833\n",
      "When time is : 151, get best_k: 15.715271916927973 best_b: 79.47921798541549, and the loss is: 24311.110267851553\n",
      "When time is : 152, get best_k: 15.615271916927973 best_b: 79.3792179854155, and the loss is: 24084.134439542682\n",
      "When time is : 153, get best_k: 15.515271916927974 best_b: 79.2792179854155, and the loss is: 23858.229783101302\n",
      "When time is : 154, get best_k: 15.415271916927974 best_b: 79.1792179854155, and the loss is: 23633.39629852744\n",
      "When time is : 155, get best_k: 15.315271916927975 best_b: 79.07921798541551, and the loss is: 23409.633985820972\n",
      "When time is : 156, get best_k: 15.215271916927975 best_b: 78.97921798541552, and the loss is: 23186.942844982048\n",
      "When time is : 157, get best_k: 15.115271916927975 best_b: 78.87921798541552, and the loss is: 22965.322876010563\n",
      "When time is : 158, get best_k: 15.015271916927976 best_b: 78.77921798541553, and the loss is: 22744.774078906565\n",
      "When time is : 159, get best_k: 14.915271916927976 best_b: 78.67921798541553, and the loss is: 22525.29645367\n",
      "When time is : 160, get best_k: 14.815271916927976 best_b: 78.57921798541554, and the loss is: 22306.890000300926\n",
      "When time is : 161, get best_k: 14.715271916927977 best_b: 78.47921798541554, and the loss is: 22089.554718799314\n",
      "When time is : 162, get best_k: 14.615271916927977 best_b: 78.37921798541555, and the loss is: 21873.290609165204\n",
      "When time is : 163, get best_k: 14.515271916927977 best_b: 78.27921798541556, and the loss is: 21658.09767139852\n",
      "When time is : 164, get best_k: 14.415271916927978 best_b: 78.17921798541556, and the loss is: 21443.975905499297\n",
      "When time is : 165, get best_k: 14.315271916927978 best_b: 78.07921798541557, and the loss is: 21230.925311467585\n",
      "When time is : 166, get best_k: 14.215271916927978 best_b: 77.97921798541557, and the loss is: 21018.945889303348\n",
      "When time is : 167, get best_k: 14.115271916927979 best_b: 77.87921798541558, and the loss is: 20808.03763900656\n",
      "When time is : 168, get best_k: 14.01527191692798 best_b: 77.77921798541558, and the loss is: 20598.20056057723\n",
      "When time is : 169, get best_k: 13.91527191692798 best_b: 77.67921798541559, and the loss is: 20389.434654015407\n",
      "When time is : 170, get best_k: 13.81527191692798 best_b: 77.5792179854156, and the loss is: 20181.739919321033\n",
      "When time is : 171, get best_k: 13.71527191692798 best_b: 77.4792179854156, and the loss is: 19975.11635649414\n",
      "When time is : 172, get best_k: 13.61527191692798 best_b: 77.37921798541561, and the loss is: 19769.563965534682\n",
      "When time is : 173, get best_k: 13.515271916927981 best_b: 77.27921798541561, and the loss is: 19565.082746442753\n",
      "When time is : 174, get best_k: 13.415271916927981 best_b: 77.17921798541562, and the loss is: 19361.67269921824\n",
      "When time is : 175, get best_k: 13.315271916927982 best_b: 77.07921798541562, and the loss is: 19159.333823861205\n",
      "When time is : 176, get best_k: 13.215271916927982 best_b: 76.97921798541563, and the loss is: 18958.066120371648\n",
      "When time is : 177, get best_k: 13.115271916927982 best_b: 76.87921798541564, and the loss is: 18757.869588749578\n",
      "When time is : 178, get best_k: 13.015271916927983 best_b: 76.77921798541564, and the loss is: 18558.744228994972\n",
      "When time is : 179, get best_k: 12.915271916927983 best_b: 76.67921798541565, and the loss is: 18360.69004110784\n",
      "When time is : 180, get best_k: 12.815271916927983 best_b: 76.57921798541565, and the loss is: 18163.707025088166\n",
      "When time is : 181, get best_k: 12.715271916927984 best_b: 76.47921798541566, and the loss is: 17967.795180935962\n",
      "When time is : 182, get best_k: 12.615271916927984 best_b: 76.37921798541566, and the loss is: 17772.954508651226\n",
      "When time is : 183, get best_k: 12.515271916927984 best_b: 76.27921798541567, and the loss is: 17579.185008233988\n",
      "When time is : 184, get best_k: 12.415271916927985 best_b: 76.17921798541568, and the loss is: 17386.48667968418\n",
      "When time is : 185, get best_k: 12.315271916927985 best_b: 76.07921798541568, and the loss is: 17194.859523001858\n",
      "When time is : 186, get best_k: 12.215271916927986 best_b: 75.97921798541569, and the loss is: 17004.303538187025\n",
      "When time is : 187, get best_k: 12.115271916927986 best_b: 75.87921798541569, and the loss is: 16814.818725239646\n",
      "When time is : 188, get best_k: 12.015271916927986 best_b: 75.7792179854157, and the loss is: 16626.405084159738\n",
      "When time is : 189, get best_k: 11.915271916927987 best_b: 75.6792179854157, and the loss is: 16439.0626149473\n",
      "When time is : 190, get best_k: 11.815271916927987 best_b: 75.57921798541571, and the loss is: 16252.79131760234\n",
      "When time is : 191, get best_k: 11.715271916927987 best_b: 75.47921798541572, and the loss is: 16067.591192124844\n",
      "When time is : 192, get best_k: 11.615271916927988 best_b: 75.37921798541572, and the loss is: 15883.4622385148\n",
      "When time is : 193, get best_k: 11.515271916927988 best_b: 75.27921798541573, and the loss is: 15700.404456772254\n",
      "When time is : 194, get best_k: 11.415271916927988 best_b: 75.17921798541573, and the loss is: 15518.417846897179\n",
      "When time is : 195, get best_k: 11.315271916927989 best_b: 75.07921798541574, and the loss is: 15337.502408889544\n",
      "When time is : 196, get best_k: 11.215271916927989 best_b: 74.97921798541574, and the loss is: 15157.658142749384\n",
      "When time is : 197, get best_k: 11.11527191692799 best_b: 74.87921798541575, and the loss is: 14978.885048476734\n",
      "When time is : 198, get best_k: 11.01527191692799 best_b: 74.77921798541576, and the loss is: 14801.183126071519\n",
      "When time is : 199, get best_k: 10.91527191692799 best_b: 74.67921798541576, and the loss is: 14624.552375533789\n",
      "When time is : 200, get best_k: 10.81527191692799 best_b: 74.57921798541577, and the loss is: 14448.992796863524\n",
      "When time is : 201, get best_k: 10.71527191692799 best_b: 74.47921798541577, and the loss is: 14274.50439006073\n",
      "When time is : 202, get best_k: 10.615271916927991 best_b: 74.37921798541578, and the loss is: 14101.08715512541\n",
      "When time is : 203, get best_k: 10.515271916927992 best_b: 74.27921798541578, and the loss is: 13928.74109205756\n",
      "When time is : 204, get best_k: 10.415271916927992 best_b: 74.17921798541579, and the loss is: 13757.466200857183\n",
      "When time is : 205, get best_k: 10.315271916927992 best_b: 74.0792179854158, and the loss is: 13587.262481524278\n",
      "When time is : 206, get best_k: 10.215271916927993 best_b: 73.9792179854158, and the loss is: 13418.129934058836\n",
      "When time is : 207, get best_k: 10.115271916927993 best_b: 73.8792179854158, and the loss is: 13250.068558460865\n",
      "When time is : 208, get best_k: 10.015271916927993 best_b: 73.77921798541581, and the loss is: 13083.07835473036\n",
      "When time is : 209, get best_k: 9.915271916927994 best_b: 73.67921798541582, and the loss is: 12917.159322867332\n",
      "When time is : 210, get best_k: 9.815271916927994 best_b: 73.57921798541582, and the loss is: 12752.311462871776\n",
      "When time is : 211, get best_k: 9.715271916927994 best_b: 73.47921798541583, and the loss is: 12588.534774743672\n",
      "When time is : 212, get best_k: 9.615271916927995 best_b: 73.37921798541583, and the loss is: 12425.82925848306\n",
      "When time is : 213, get best_k: 9.515271916927995 best_b: 73.27921798541584, and the loss is: 12264.194914089914\n",
      "When time is : 214, get best_k: 9.415271916927995 best_b: 73.17921798541585, and the loss is: 12103.631741564239\n",
      "When time is : 215, get best_k: 9.315271916927996 best_b: 73.07921798541585, and the loss is: 11944.139740906025\n",
      "When time is : 216, get best_k: 9.215271916927996 best_b: 72.97921798541586, and the loss is: 11785.71891211528\n",
      "When time is : 217, get best_k: 9.115271916927997 best_b: 72.87921798541586, and the loss is: 11628.369255192021\n",
      "When time is : 218, get best_k: 9.015271916927997 best_b: 72.77921798541587, and the loss is: 11472.09077013622\n",
      "When time is : 219, get best_k: 8.915271916927997 best_b: 72.67921798541587, and the loss is: 11316.883456947902\n",
      "When time is : 220, get best_k: 8.815271916927998 best_b: 72.57921798541588, and the loss is: 11162.747315627043\n",
      "When time is : 221, get best_k: 8.715271916927998 best_b: 72.47921798541589, and the loss is: 11009.682346173666\n",
      "When time is : 222, get best_k: 8.615271916927998 best_b: 72.37921798541589, and the loss is: 10857.688548587734\n",
      "When time is : 223, get best_k: 8.515271916927999 best_b: 72.2792179854159, and the loss is: 10706.765922869292\n",
      "When time is : 224, get best_k: 8.415271916927999 best_b: 72.1792179854159, and the loss is: 10556.914469018315\n",
      "When time is : 225, get best_k: 8.315271916928 best_b: 72.07921798541591, and the loss is: 10408.134187034817\n",
      "When time is : 226, get best_k: 8.215271916928 best_b: 71.97921798541591, and the loss is: 10260.42507691878\n",
      "When time is : 227, get best_k: 8.115271916928 best_b: 71.87921798541592, and the loss is: 10113.787138670214\n",
      "When time is : 228, get best_k: 8.015271916928 best_b: 71.77921798541593, and the loss is: 9968.220372289119\n",
      "When time is : 229, get best_k: 7.915271916928001 best_b: 71.67921798541593, and the loss is: 9823.724777775495\n",
      "When time is : 230, get best_k: 7.815271916928001 best_b: 71.57921798541594, and the loss is: 9680.300355129342\n",
      "When time is : 231, get best_k: 7.7152719169280015 best_b: 71.47921798541594, and the loss is: 9537.94710435066\n",
      "When time is : 232, get best_k: 7.615271916928002 best_b: 71.37921798541595, and the loss is: 9396.665025439448\n",
      "When time is : 233, get best_k: 7.515271916928002 best_b: 71.27921798541595, and the loss is: 9256.454118395712\n",
      "When time is : 234, get best_k: 7.415271916928003 best_b: 71.17921798541596, and the loss is: 9117.314383219426\n",
      "When time is : 235, get best_k: 7.315271916928003 best_b: 71.07921798541597, and the loss is: 8979.245819910626\n",
      "When time is : 236, get best_k: 7.215271916928003 best_b: 70.97921798541597, and the loss is: 8842.248428469296\n",
      "When time is : 237, get best_k: 7.115271916928004 best_b: 70.87921798541598, and the loss is: 8706.322208895443\n",
      "When time is : 238, get best_k: 7.015271916928004 best_b: 70.77921798541598, and the loss is: 8571.467161189052\n",
      "When time is : 239, get best_k: 6.915271916928004 best_b: 70.67921798541599, and the loss is: 8437.683285350131\n",
      "When time is : 240, get best_k: 6.815271916928005 best_b: 70.579217985416, and the loss is: 8304.970581378682\n",
      "When time is : 241, get best_k: 6.715271916928005 best_b: 70.479217985416, and the loss is: 8173.32904927471\n",
      "When time is : 242, get best_k: 6.615271916928005 best_b: 70.379217985416, and the loss is: 8042.758689038191\n",
      "When time is : 243, get best_k: 6.515271916928006 best_b: 70.27921798541601, and the loss is: 7913.259500669155\n",
      "When time is : 244, get best_k: 6.415271916928006 best_b: 70.17921798541602, and the loss is: 7784.831484167586\n",
      "When time is : 245, get best_k: 6.3152719169280065 best_b: 70.07921798541602, and the loss is: 7657.474639533486\n",
      "When time is : 246, get best_k: 6.215271916928007 best_b: 69.97921798541603, and the loss is: 7531.188966766861\n",
      "When time is : 247, get best_k: 6.115271916928007 best_b: 69.87921798541603, and the loss is: 7405.974465867706\n",
      "When time is : 248, get best_k: 6.015271916928008 best_b: 69.77921798541604, and the loss is: 7281.831136836023\n",
      "When time is : 249, get best_k: 5.915271916928008 best_b: 69.67921798541605, and the loss is: 7158.7589796718\n",
      "When time is : 250, get best_k: 5.815271916928008 best_b: 69.57921798541605, and the loss is: 7036.757994375053\n",
      "When time is : 251, get best_k: 5.715271916928009 best_b: 69.47921798541606, and the loss is: 6915.828180945763\n",
      "When time is : 252, get best_k: 5.615271916928009 best_b: 69.37921798541606, and the loss is: 6795.969539383971\n",
      "When time is : 253, get best_k: 5.515271916928009 best_b: 69.27921798541607, and the loss is: 6677.182069689645\n",
      "When time is : 254, get best_k: 5.41527191692801 best_b: 69.17921798541607, and the loss is: 6559.46577186276\n",
      "When time is : 255, get best_k: 5.31527191692801 best_b: 69.07921798541608, and the loss is: 6442.820645903371\n",
      "When time is : 256, get best_k: 5.21527191692801 best_b: 68.97921798541608, and the loss is: 6327.24669181145\n",
      "When time is : 257, get best_k: 5.115271916928011 best_b: 68.87921798541609, and the loss is: 6212.743909587002\n",
      "When time is : 258, get best_k: 5.015271916928011 best_b: 68.7792179854161, and the loss is: 6099.3122992300105\n",
      "When time is : 259, get best_k: 4.9152719169280115 best_b: 68.6792179854161, and the loss is: 5986.951860740502\n",
      "When time is : 260, get best_k: 4.815271916928012 best_b: 68.57921798541611, and the loss is: 5875.662594118455\n",
      "When time is : 261, get best_k: 4.715271916928012 best_b: 68.47921798541611, and the loss is: 5765.444499363882\n",
      "When time is : 262, get best_k: 4.6152719169280125 best_b: 68.37921798541612, and the loss is: 5656.297576476782\n",
      "When time is : 263, get best_k: 4.515271916928013 best_b: 68.27921798541612, and the loss is: 5548.221825457147\n",
      "When time is : 264, get best_k: 4.415271916928013 best_b: 68.17921798541613, and the loss is: 5441.217246304979\n",
      "When time is : 265, get best_k: 4.315271916928014 best_b: 68.07921798541614, and the loss is: 5335.283839020292\n",
      "When time is : 266, get best_k: 4.215271916928014 best_b: 67.97921798541614, and the loss is: 5230.42160360307\n",
      "When time is : 267, get best_k: 4.115271916928014 best_b: 67.87921798541615, and the loss is: 5126.6305400533265\n",
      "When time is : 268, get best_k: 4.015271916928015 best_b: 67.77921798541615, and the loss is: 5023.910648371044\n",
      "When time is : 269, get best_k: 3.9152719169280146 best_b: 67.67921798541616, and the loss is: 4922.2619285562305\n",
      "When time is : 270, get best_k: 3.8152719169280145 best_b: 67.57921798541616, and the loss is: 4821.684380608896\n",
      "When time is : 271, get best_k: 3.7152719169280144 best_b: 67.47921798541617, and the loss is: 4722.178004529022\n",
      "When time is : 272, get best_k: 3.6152719169280143 best_b: 67.37921798541618, and the loss is: 4623.74280031662\n",
      "When time is : 273, get best_k: 3.515271916928014 best_b: 67.27921798541618, and the loss is: 4526.378767971689\n",
      "When time is : 274, get best_k: 3.415271916928014 best_b: 67.17921798541619, and the loss is: 4430.0859074942355\n",
      "When time is : 275, get best_k: 3.315271916928014 best_b: 67.0792179854162, and the loss is: 4334.864218884245\n",
      "When time is : 276, get best_k: 3.215271916928014 best_b: 66.9792179854162, and the loss is: 4240.713702141725\n",
      "When time is : 277, get best_k: 3.115271916928014 best_b: 66.8792179854162, and the loss is: 4147.634357266678\n",
      "When time is : 278, get best_k: 3.0152719169280138 best_b: 66.77921798541621, and the loss is: 4055.6261842591016\n",
      "When time is : 279, get best_k: 2.9152719169280137 best_b: 66.67921798541622, and the loss is: 3964.6891831189937\n",
      "When time is : 280, get best_k: 2.8152719169280136 best_b: 66.57921798541622, and the loss is: 3874.8233538463564\n",
      "When time is : 281, get best_k: 2.7152719169280135 best_b: 66.47921798541623, and the loss is: 3786.028696441194\n",
      "When time is : 282, get best_k: 2.6152719169280134 best_b: 66.37921798541623, and the loss is: 3698.3052109034998\n",
      "When time is : 283, get best_k: 2.5152719169280133 best_b: 66.27921798541624, and the loss is: 3611.65289723327\n",
      "When time is : 284, get best_k: 2.4152719169280132 best_b: 66.17921798541624, and the loss is: 3526.0717554305133\n",
      "When time is : 285, get best_k: 2.315271916928013 best_b: 66.07921798541625, and the loss is: 3441.5617854952307\n",
      "When time is : 286, get best_k: 2.215271916928013 best_b: 65.97921798541626, and the loss is: 3358.1229874274118\n",
      "When time is : 287, get best_k: 2.115271916928013 best_b: 65.87921798541626, and the loss is: 3275.755361227069\n",
      "When time is : 288, get best_k: 2.015271916928013 best_b: 65.77921798541627, and the loss is: 3194.4589068941955\n",
      "When time is : 289, get best_k: 1.9152719169280128 best_b: 65.67921798541627, and the loss is: 3114.2336244287903\n",
      "When time is : 290, get best_k: 1.8152719169280127 best_b: 65.57921798541628, and the loss is: 3035.0795138308586\n",
      "When time is : 291, get best_k: 1.7152719169280126 best_b: 65.47921798541628, and the loss is: 2956.9965751003942\n",
      "When time is : 292, get best_k: 1.6152719169280125 best_b: 65.37921798541629, and the loss is: 2879.9848082374015\n",
      "When time is : 293, get best_k: 1.5152719169280124 best_b: 65.2792179854163, and the loss is: 2804.0442132418843\n",
      "When time is : 294, get best_k: 1.4152719169280124 best_b: 65.1792179854163, and the loss is: 2729.1747901138283\n",
      "When time is : 295, get best_k: 1.3152719169280123 best_b: 65.0792179854163, and the loss is: 2655.376538853246\n",
      "When time is : 296, get best_k: 1.2152719169280122 best_b: 64.97921798541631, and the loss is: 2582.6494594601363\n",
      "When time is : 297, get best_k: 1.115271916928012 best_b: 64.87921798541632, and the loss is: 2510.9935519344945\n",
      "When time is : 298, get best_k: 1.015271916928012 best_b: 64.77921798541632, and the loss is: 2440.4088162763246\n",
      "When time is : 299, get best_k: 0.915271916928012 best_b: 64.67921798541633, and the loss is: 2370.895252485626\n",
      "When time is : 300, get best_k: 0.815271916928012 best_b: 64.57921798541634, and the loss is: 2302.452860562394\n",
      "When time is : 301, get best_k: 0.7152719169280121 best_b: 64.47921798541634, and the loss is: 2235.081640506632\n",
      "When time is : 302, get best_k: 0.6152719169280121 best_b: 64.37921798541635, and the loss is: 2168.7815923183457\n",
      "When time is : 303, get best_k: 0.5152719169280121 best_b: 64.27921798541635, and the loss is: 2103.5527159975254\n",
      "When time is : 304, get best_k: 0.41527191692801213 best_b: 64.17921798541636, and the loss is: 2039.3950115441753\n",
      "When time is : 305, get best_k: 0.31527191692801215 best_b: 64.07921798541636, and the loss is: 1976.3084789582977\n",
      "When time is : 306, get best_k: 0.21527191692801215 best_b: 63.97921798541636, and the loss is: 1914.2931182398897\n",
      "When time is : 307, get best_k: 0.11527191692801214 best_b: 63.87921798541636, and the loss is: 1853.3489293889518\n",
      "When time is : 308, get best_k: 0.015271916928012136 best_b: 63.77921798541636, and the loss is: 1793.4759124054829\n",
      "When time is : 309, get best_k: -0.08472808307198787 best_b: 63.67921798541636, and the loss is: 1734.6740672894864\n",
      "When time is : 310, get best_k: -0.18472808307198788 best_b: 63.579217985416356, and the loss is: 1676.94339404096\n",
      "When time is : 311, get best_k: -0.2847280830719879 best_b: 63.479217985416355, and the loss is: 1620.2838926599027\n",
      "When time is : 312, get best_k: -0.3847280830719879 best_b: 63.37921798541635, and the loss is: 1564.6955631463156\n",
      "When time is : 313, get best_k: -0.4847280830719879 best_b: 63.27921798541635, and the loss is: 1510.178405500201\n",
      "When time is : 314, get best_k: -0.5847280830719879 best_b: 63.17921798541635, and the loss is: 1456.7324197215562\n",
      "When time is : 315, get best_k: -0.6847280830719878 best_b: 63.07921798541635, and the loss is: 1404.3576058103795\n",
      "When time is : 316, get best_k: -0.7847280830719878 best_b: 62.97921798541635, and the loss is: 1353.0539637666745\n",
      "When time is : 317, get best_k: -0.8847280830719878 best_b: 62.879217985416346, and the loss is: 1302.8214935904402\n",
      "When time is : 318, get best_k: -0.9847280830719878 best_b: 62.779217985416345, and the loss is: 1253.660195281678\n",
      "When time is : 319, get best_k: -1.0847280830719879 best_b: 62.679217985416344, and the loss is: 1205.5700688403815\n",
      "When time is : 320, get best_k: -1.184728083071988 best_b: 62.57921798541634, and the loss is: 1158.5511142665587\n",
      "When time is : 321, get best_k: -1.284728083071988 best_b: 62.47921798541634, and the loss is: 1112.6033315602053\n",
      "When time is : 322, get best_k: -1.3847280830719881 best_b: 62.37921798541634, and the loss is: 1067.7267207213233\n",
      "When time is : 323, get best_k: -1.4847280830719882 best_b: 62.27921798541634, and the loss is: 1023.921281749911\n",
      "When time is : 324, get best_k: -1.5847280830719883 best_b: 62.17921798541634, and the loss is: 981.1870146459678\n",
      "When time is : 325, get best_k: -1.6847280830719884 best_b: 62.079217985416335, and the loss is: 939.5239194094956\n",
      "When time is : 326, get best_k: -1.7847280830719885 best_b: 61.979217985416334, and the loss is: 898.9319960404946\n",
      "When time is : 327, get best_k: -1.8847280830719886 best_b: 61.87921798541633, and the loss is: 859.4112445389644\n",
      "When time is : 328, get best_k: -1.9847280830719887 best_b: 61.77921798541633, and the loss is: 820.9616649049025\n",
      "When time is : 329, get best_k: -2.0847280830719885 best_b: 61.67921798541633, and the loss is: 783.5832571383133\n",
      "When time is : 330, get best_k: -2.1847280830719886 best_b: 61.57921798541633, and the loss is: 747.2760212391935\n",
      "When time is : 331, get best_k: -2.2847280830719887 best_b: 61.47921798541633, and the loss is: 712.039957207544\n",
      "When time is : 332, get best_k: -2.384728083071989 best_b: 61.379217985416325, and the loss is: 677.875065043365\n",
      "When time is : 333, get best_k: -2.484728083071989 best_b: 61.279217985416324, and the loss is: 644.7813447466561\n",
      "When time is : 334, get best_k: -2.584728083071989 best_b: 61.17921798541632, and the loss is: 612.7587963174173\n",
      "When time is : 335, get best_k: -2.684728083071989 best_b: 61.07921798541632, and the loss is: 581.807419755649\n",
      "When time is : 336, get best_k: -2.784728083071989 best_b: 60.97921798541632, and the loss is: 551.9272150613516\n",
      "When time is : 337, get best_k: -2.8847280830719892 best_b: 60.87921798541632, and the loss is: 523.1181822345238\n",
      "When time is : 338, get best_k: -2.9847280830719893 best_b: 60.77921798541632, and the loss is: 495.38032127516743\n",
      "When time is : 339, get best_k: -3.0847280830719894 best_b: 60.679217985416315, and the loss is: 468.7136321832808\n",
      "When time is : 340, get best_k: -3.1847280830719895 best_b: 60.579217985416314, and the loss is: 443.1181149588642\n",
      "When time is : 341, get best_k: -3.2847280830719896 best_b: 60.47921798541631, and the loss is: 418.59376960191844\n",
      "When time is : 342, get best_k: -3.3847280830719897 best_b: 60.37921798541631, and the loss is: 395.140596112443\n",
      "When time is : 343, get best_k: -3.48472808307199 best_b: 60.27921798541631, and the loss is: 372.75859449043764\n",
      "When time is : 344, get best_k: -3.58472808307199 best_b: 60.17921798541631, and the loss is: 351.44776473590275\n",
      "When time is : 345, get best_k: -3.68472808307199 best_b: 60.07921798541631, and the loss is: 331.2081068488385\n",
      "When time is : 346, get best_k: -3.78472808307199 best_b: 59.979217985416305, and the loss is: 312.0396208292443\n",
      "When time is : 347, get best_k: -3.88472808307199 best_b: 59.879217985416304, and the loss is: 293.9423066771203\n",
      "When time is : 348, get best_k: -3.9847280830719902 best_b: 59.7792179854163, and the loss is: 276.9161643924673\n",
      "When time is : 349, get best_k: -4.08472808307199 best_b: 59.6792179854163, and the loss is: 260.9611939752839\n",
      "When time is : 350, get best_k: -4.18472808307199 best_b: 59.5792179854163, and the loss is: 246.07739542557132\n",
      "When time is : 351, get best_k: -4.28472808307199 best_b: 59.4792179854163, and the loss is: 232.26476874332923\n",
      "When time is : 352, get best_k: -4.384728083071989 best_b: 59.3792179854163, and the loss is: 219.52331392855714\n",
      "When time is : 353, get best_k: -4.484728083071989 best_b: 59.279217985416295, and the loss is: 207.85303098125564\n",
      "When time is : 354, get best_k: -4.5847280830719885 best_b: 59.179217985416294, and the loss is: 197.25391990142458\n",
      "When time is : 355, get best_k: -4.684728083071988 best_b: 59.07921798541629, and the loss is: 187.72598068906387\n",
      "When time is : 356, get best_k: -4.784728083071988 best_b: 58.97921798541629, and the loss is: 179.26921334417312\n",
      "When time is : 357, get best_k: -4.8847280830719875 best_b: 58.87921798541629, and the loss is: 171.88361786675316\n",
      "When time is : 358, get best_k: -4.984728083071987 best_b: 58.77921798541629, and the loss is: 165.56919425680343\n",
      "When time is : 359, get best_k: -5.084728083071987 best_b: 58.67921798541629, and the loss is: 160.32594251432388\n",
      "When time is : 360, get best_k: -5.184728083071986 best_b: 58.579217985416285, and the loss is: 156.15386263931464\n",
      "When time is : 361, get best_k: -5.284728083071986 best_b: 58.479217985416284, and the loss is: 153.05295463177598\n",
      "When time is : 362, get best_k: -5.384728083071986 best_b: 58.37921798541628, and the loss is: 151.02321849170752\n",
      "When time is : 363, get best_k: -5.484728083071985 best_b: 58.27921798541628, and the loss is: 150.06465421910946\n"
     ]
    }
   ],
   "source": [
    "trying_times = 2000\n",
    "\n",
    "min_loss = float('inf')\n",
    "\n",
    "best_k = random.random() * 200 - 100\n",
    "best_b = random.random() * 200 - 100\n",
    "\n",
    "direction = [\n",
    "    (+1, -1),  # k 变大，b 变小\n",
    "    (+1, +1),\n",
    "    (-1, -1),\n",
    "    (-1, +1),\n",
    "]\n",
    "\n",
    "next_direction = random.choice(direction)\n",
    "\n",
    "scalar = 0.1\n",
    "\n",
    "for i in range(trying_times):\n",
    "\n",
    "    k_direction, b_direction = next_direction\n",
    "\n",
    "    current_k, current_b = best_k + k_direction * scalar, best_b + b_direction * scalar\n",
    "\n",
    "    price_by_k_and_b = [price(r, current_k, current_b) for r in X_rm]\n",
    "\n",
    "    current_loss = loss(y, price_by_k_and_b)\n",
    "\n",
    "    if current_loss < min_loss:  # 性能变好\n",
    "        min_loss = current_loss\n",
    "        best_k, best_b = current_k, current_b\n",
    "\n",
    "        next_direction = next_direction\n",
    "        print(\n",
    "            'When time is : {}, get best_k: {} best_b: {}, and the loss is: {}'\n",
    "            .format(i, best_k, best_b, min_loss))\n",
    "    else:\n",
    "        next_direction = random.choice(direction)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**6.换用其它损失函数，效果会不会更优？**"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "def loss2(y, y_hat):\n",
    "    return sum(\n",
    "        abs(y_i - y_hat_i)\n",
    "        for y_i, y_hat_i in zip(list(y), list(y_hat))) / len(list(y))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 0, get best_k: 15 best_b: 43, and the loss is: 114.73670948616603\n",
      "When time is : 7, get best_k: 9 best_b: -100, and the loss is: 65.9710968379447\n",
      "When time is : 10, get best_k: 3 best_b: 13, and the loss is: 10.892444664031629\n",
      "When time is : 126, get best_k: -1 best_b: 24, and the loss is: 7.574258893280632\n",
      "When time is : 240, get best_k: -2 best_b: 33, and the loss is: 7.270422924901187\n",
      "When time is : 292, get best_k: 14 best_b: -64, and the loss is: 5.070691699604743\n",
      "When time is : 1246, get best_k: 9 best_b: -34, and the loss is: 4.451326086956521\n"
     ]
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "\n",
    "min_loss = float('inf')\n",
    "best_k, best_b = None, None\n",
    "\n",
    "for i in range(100000):\n",
    "    k = random.randint(-100, 100)\n",
    "    b = random.randint(-100, 100)\n",
    "    price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "    current_loss = loss2(y, price_by_random_k_and_b)\n",
    "    if current_loss < min_loss:\n",
    "        min_loss = current_loss\n",
    "        best_b, best_k = b, k\n",
    "        print(\n",
    "            'When time is : {}, get best_k: {} best_b: {}, and the loss is: {}'\n",
    "            .format(i, best_k, best_b, min_loss))\n",
    "        "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.collections.PathCollection at 0x7fa067c44490>"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD2CAYAAAD24G0VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO2de3gc9XnvP++uRvbK5Fjm4EIRNjh5KJwY32KFwGNIgUAIBVzFEDshhKYhpS05STCNW1NSkF0oTpwASfuYxhzcck1RuCg2TgoNJin2KSRSZAROTZtwc5bkYGpLKVhYa+l3/ljNenc1s3PZnd2d3ffzPH4kze7M/GbW+/298/7eixhjUBRFUeJDotYDUBRFUYKhwq0oihIzV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9xsZAr7FxCHqd6ipRFEWJGSrciqIoMUOFezIbaz2AKqDX2BjoNTYOga5TfdyKoigxQy1uRVGUmKHCrSiKEjNUuPMQkaNFZKDW44gCEWkRkddE5IcT/+bVekxRIiIbROTiWo8jCkTkT/M+x50i8q1aj6nSiMgMEfmeiPQ14vUBiMgcEdkqIk+LyNeD7KvCXcjXgJTnu+LJfODbxpizJv49X+sBRYWInAkcY4zZUuuxRIEx5g77cwSeBu6s8ZCi4FPA/ROxze8SkUaM5f4K8NfGmDOB40TkLL87qnBPICLnAG8Dv671WCLiNOAiEfmxiNwlIvXfti4EImKRFbJXROT3az2eKBGRDuBoY0xfrccSAf8FnCIi7cAsYE+NxxMFvwP8dOL3N4DpfndU4QZEpBX4K2B1rccSIT8BzjXGnApYwO/VeDxRcQXwM+CrwKki8vkajydKPgfcUetBRMR24HjgC8C/A/tqO5xIeAi4ccKl9xHgSb87qnBnWQ1sMMYM1XogETJojPnVxO99wIm1HEyELAI2GmN+DdwHnF3j8USCiCTIXtsPazyUqLgR+BNjzFpgN/CHNR5PxTHG3AR8H/gscLcx5i2/+6pwZzkX+JyI/BBYKCL/p8bjiYJ7RWSBiCSBLuC5Wg8oIn4OvHvi907iVeAsCGcCz5rGTcSYAcyb+P/6AaBRr3MnMBu4NchOmoBThIj8cGLRp6EQkVOABwABNhtjrq/xkCJBRN4FbAKOJusSutQYk67tqCqPiPwN0GeMeaTWY4kCETkV+Aey7pJ/Az4axCKNCyKyBvi5MebeQPupcCuKosQLdZUoiqLEDBVuRVGUmKHCrSiKEjNUuBVFUWKGCreiKErMUOFWFEWJGf8f7yqTFYHe5kQAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "k = best_k\n",
    "b = best_b\n",
    "price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "\n",
    "draw_rm_and_price()\n",
    "plt.scatter(X_rm, price_by_random_k_and_b)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**7.进一步减少求得函数过程中的随机性**\n",
    "- 每次都向损失更小的方向改变\n",
    "- 梯度下降\n",
    "\n",
    "$$loss = \\frac{1}{n}\\sum{(y_i - \\hat{y_i})^2}= \\frac{1}{n}\\sum{(kx_i+b - \\hat{y_i})^2}$$"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [],
   "source": [
    "def loss(y, y_hat):\n",
    "    return sum((y_i - y_hat_i)**2\n",
    "               for y_i, y_hat_i in zip(list(y), list(y_hat))) / len(list(y))\n",
    "\n",
    "\n",
    "def partial_k(x, y, y_hat):\n",
    "    n = len(y)\n",
    "    return (-2 / n) * sum(\n",
    "        (y_i - y_hat_i) * x_i\n",
    "        for x_i, y_i, y_hat_i in zip(list(x), list(y), list(y_hat)))\n",
    "\n",
    "\n",
    "def partial_b(x, y, y_hat):\n",
    "    n = len(y)\n",
    "    return (-2 / n) * sum(\n",
    "        (y_i - y_hat_i) for y_i, y_hat_i in zip(list(y), list(y_hat)))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 0, get best_k: -13.559022919089742 best_b: -39.64310118350512, and the loss is: 22020.250743713666\n",
      "When time is : 1, get best_k: -11.68411575770349 best_b: -39.34832236509748, and the loss is: 18565.686590367302\n",
      "When time is : 2, get best_k: -9.962866292653523 best_b: -39.07769931636574, and the loss is: 15654.154520887234\n",
      "When time is : 3, get best_k: -8.382681568586534 best_b: -38.82925236088599, and the loss is: 13200.293884518653\n",
      "When time is : 4, get best_k: -6.932000680792832 best_b: -38.601164065827675, and the loss is: 11132.162097162041\n",
      "When time is : 5, get best_k: -5.600210193906639 best_b: -38.39176594534449, and the loss is: 9389.125419955895\n",
      "When time is : 6, get best_k: -4.377566492433125 best_b: -38.19952625368353, and the loss is: 7920.081291957482\n",
      "When time is : 7, get best_k: -3.2551244950071045 best_b: -38.02303877870541, and the loss is: 6681.960099055183\n",
      "When time is : 8, get best_k: -2.2246722108462733 best_b: -37.86101255382692, and the loss is: 5638.462453791689\n",
      "When time is : 9, get best_k: -1.278670659604285 best_b: -37.7122624131173, and the loss is: 4758.99496551435\n",
      "When time is : 10, get best_k: -0.41019871506834693 best_b: -37.57570032044795, and the loss is: 4017.773299632718\n",
      "When time is : 11, get best_k: 0.3870975308303728 best_b: -37.4503274092581, and the loss is: 3393.0662293658474\n",
      "When time is : 12, get best_k: 1.1190512541539603 best_b: -37.3352266746984, and the loss is: 2866.558516996491\n",
      "When time is : 13, get best_k: 1.7910175753421065 best_b: -37.229556264686906, and the loss is: 2422.8139455075025\n",
      "When time is : 14, get best_k: 2.407912738070357 best_b: -37.13254332079401, and the loss is: 2048.8227576967724\n",
      "When time is : 15, get best_k: 2.9742500772206357 best_b: -37.04347832389504, and the loss is: 1733.6202345356771\n",
      "When time is : 16, get best_k: 3.494173039111055 best_b: -36.9617099032228, and the loss is: 1467.96523020505\n",
      "When time is : 17, get best_k: 3.9714854955659358 best_b: -36.88664007084204, and the loss is: 1244.0692390598117\n",
      "When time is : 18, get best_k: 4.409679573608288 best_b: -36.81771984668074, and the loss is: 1055.3680512746423\n",
      "When time is : 19, get best_k: 4.811961204380916 best_b: -36.75444524211016, and the loss is: 896.3293025431672\n",
      "When time is : 20, get best_k: 5.181273578215869 best_b: -36.69635357268903, and the loss is: 762.2902755493722\n",
      "When time is : 21, get best_k: 5.520318677453008 best_b: -36.64302007309529, and the loss is: 649.3211978551013\n",
      "When time is : 22, get best_k: 5.8315770445449955 best_b: -36.594054789479806, and the loss is: 554.1100283544785\n",
      "When time is : 23, get best_k: 6.117325930075114 best_b: -36.5490997265059, and the loss is: 473.86535445055966\n",
      "When time is : 24, get best_k: 6.379655953461503 best_b: -36.50782622820225, and the loss is: 406.23455308182497\n",
      "When time is : 25, get best_k: 6.620486398240016 best_b: -36.46993257346682, and the loss is: 349.23481623356076\n",
      "When time is : 26, get best_k: 6.841579253828253 best_b: -36.435141768630416, and the loss is: 301.1950187316915\n",
      "When time is : 27, get best_k: 7.04455210650242 best_b: -36.40319952092974, and the loss is: 260.7067239919882\n",
      "When time is : 28, get best_k: 7.230889973899299 best_b: -36.373872378063695, and the loss is: 226.58289130525213\n",
      "When time is : 29, get best_k: 7.401956169626332 best_b: -36.346946020221594, and the loss is: 197.82307403364646\n",
      "When time is : 30, get best_k: 7.559002277466899 best_b: -36.32222369208754, and the loss is: 173.58408839467845\n",
      "When time is : 31, get best_k: 7.703177308153578 best_b: -36.29952476334922, and the loss is: 153.15529289666472\n",
      "When time is : 32, get best_k: 7.835536105701701 best_b: -36.27868340717968, and the loss is: 135.93775366518108\n",
      "When time is : 33, get best_k: 7.957047064805178 best_b: -36.25954738702355, and the loss is: 121.42668482699654\n",
      "When time is : 34, get best_k: 8.06859921575623 best_b: -36.24197694281179, and the loss is: 109.19664913654152\n",
      "When time is : 35, get best_k: 8.171008728723338 best_b: -36.225843768456144, and the loss is: 98.88908495507684\n",
      "When time is : 36, get best_k: 8.265024884973686 best_b: -36.21103007314278, and the loss is: 90.20179389702646\n",
      "When time is : 37, get best_k: 8.351335558726436 best_b: -36.19742771955712, and the loss is: 82.8800809410099\n",
      "When time is : 38, get best_k: 8.430572249742918 best_b: -36.184937432735154, and the loss is: 76.70928725027585\n",
      "When time is : 39, get best_k: 8.503314703472872 best_b: -36.173468073753035, and the loss is: 71.50849677885739\n",
      "When time is : 40, get best_k: 8.570095152558466 best_b: -36.16293597294115, and the loss is: 67.12523215296662\n",
      "When time is : 41, get best_k: 8.631402210727515 best_b: -36.15326431774434, and the loss is: 63.43098432083318\n",
      "When time is : 42, get best_k: 8.687684447564259 best_b: -36.144382590749835, and the loss is: 60.3174449087185\n",
      "When time is : 43, get best_k: 8.7393536703112 best_b: -36.13622605377136, and the loss is: 57.69333082286114\n",
      "When time is : 44, get best_k: 8.786787936712196 best_b: -36.12873527421493, and the loss is: 55.48170800064878\n",
      "When time is : 45, get best_k: 8.830334320939185 best_b: -36.12185569026114, and the loss is: 53.61773584842795\n",
      "When time is : 46, get best_k: 8.870311452838484 best_b: -36.11553721168277, and the loss is: 52.04676623710464\n",
      "When time is : 47, get best_k: 8.907011849074184 best_b: -36.10973385337724, and the loss is: 50.722741321659704\n",
      "When time is : 48, get best_k: 8.940704053223596 best_b: -36.10440339893275, and the loss is: 49.606843211654734\n",
      "When time is : 49, get best_k: 8.971634600482044 best_b: -36.09950709176672, and the loss is: 48.6663559036065\n",
      "When time is : 50, get best_k: 9.000029821351044 best_b: -36.09500935157685, and the loss is: 47.87370610922372\n",
      "When time is : 51, get best_k: 9.026097497505948 best_b: -36.09087751403038, and the loss is: 47.20565485839243\n",
      "When time is : 52, get best_k: 9.050028381957606 best_b: -36.087081591786934, and the loss is: 46.642616176228245\n",
      "When time is : 53, get best_k: 9.07199759462979 best_b: -36.08359405510666, and the loss is: 46.1680828590859\n",
      "When time is : 54, get best_k: 9.092165903562622 best_b: -36.08038963043859, and the loss is: 45.76814251435841\n",
      "When time is : 55, get best_k: 9.110680901115483 best_b: -36.077445115515566, and the loss is: 45.43106967526083\n",
      "When time is : 56, get best_k: 9.127678083774692 best_b: -36.074739209602996, and the loss is: 45.146982032171564\n",
      "When time is : 57, get best_k: 9.143281843465957 best_b: -36.0722523576595, and the loss is: 44.90755070187822\n",
      "When time is : 58, get best_k: 9.15760637762423 best_b: -36.06996660726935, and the loss is: 44.70575604036853\n",
      "When time is : 59, get best_k: 9.170756524679133 best_b: -36.06786547729989, and the loss is: 44.535681840054714\n",
      "When time is : 60, get best_k: 9.182828531068518 best_b: -36.06593383732313, and the loss is: 44.39234187768076\n",
      "When time is : 61, get best_k: 9.19391075539173 best_b: -36.064157796919275, and the loss is: 44.27153372762345\n",
      "When time is : 62, get best_k: 9.204084314854278 best_b: -36.06252460405237, and the loss is: 44.16971555466806\n",
      "When time is : 63, get best_k: 9.213423678733372 best_b: -36.06102255177448, and the loss is: 44.08390227405286\n",
      "When time is : 64, get best_k: 9.221997213206258 best_b: -36.05964089257593, and the loss is: 44.0115780343919\n",
      "When time is : 65, get best_k: 9.229867681527331 best_b: -36.05836975975491, and the loss is: 43.95062245763841\n",
      "When time is : 66, get best_k: 9.237092703213456 best_b: -36.057200095231245, and the loss is: 43.899248473583796\n",
      "When time is : 67, get best_k: 9.243725175596927 best_b: -36.056123583276104, and the loss is: 43.85594992631603\n",
      "When time is : 68, get best_k: 9.249813660830224 best_b: -36.0551325896729, and the loss is: 43.81945741655831\n",
      "When time is : 69, get best_k: 9.255402741173949 best_b: -36.05422010586423, and the loss is: 43.788701085266005\n",
      "When time is : 70, get best_k: 9.260533345167284 best_b: -36.05337969767623, and the loss is: 43.76277924737018\n",
      "When time is : 71, get best_k: 9.265243047067267 best_b: -36.05260545824517, and the loss is: 43.74093195606453\n",
      "When time is : 72, get best_k: 9.269566341747662 best_b: -36.051891964801996, and the loss is: 43.72251872259309\n",
      "When time is : 73, get best_k: 9.27353489706858 best_b: -36.05123423899854, and the loss is: 43.7069997383228\n",
      "When time is : 74, get best_k: 9.277177785563259 best_b: -36.050627710485166, and the loss is: 43.69392004856869\n",
      "When time is : 75, get best_k: 9.280521697137052 best_b: -36.05006818347343, and the loss is: 43.68289621417698\n",
      "When time is : 76, get best_k: 9.28359113433474 best_b: -36.04955180603904, and the loss is: 43.673605069809554\n",
      "When time is : 77, get best_k: 9.286408591604799 best_b: -36.04907504194065, and the loss is: 43.66577424934325\n",
      "When time is : 78, get best_k: 9.28899471987213 best_b: -36.04863464474814, and the loss is: 43.65917420060674\n",
      "When time is : 79, get best_k: 9.29136847762331 best_b: -36.0482276340913, and the loss is: 43.653611455342315\n",
      "When time is : 80, get best_k: 9.293547269609688 best_b: -36.04785127385495, and the loss is: 43.64892295707962\n",
      "When time is : 81, get best_k: 9.295547074183146 best_b: -36.047503052161154, and the loss is: 43.644971280626685\n",
      "When time is : 82, get best_k: 9.297382560196096 best_b: -36.04718066299193, and the loss is: 43.64164060302117\n",
      "When time is : 83, get best_k: 9.299067194320992 best_b: -36.04688198931807, and the loss is: 43.63883330781894\n",
      "When time is : 84, get best_k: 9.300613339574504 best_b: -36.04660508761066, and the loss is: 43.63646712316283\n",
      "When time is : 85, get best_k: 9.302032345767191 best_b: -36.04634817362192, and the loss is: 43.63447270972692\n",
      "When time is : 86, get best_k: 9.303334632540409 best_b: -36.04610960933139, and the loss is: 43.63279162781743\n",
      "When time is : 87, get best_k: 9.304529765597948 best_b: -36.045887890961914, and the loss is: 43.63137462403073\n",
      "When time is : 88, get best_k: 9.305626526690157 best_b: -36.0456816379778, and the loss is: 43.63018018723604\n",
      "When time is : 89, get best_k: 9.306632977862524 best_b: -36.0454895829846, and the loss is: 43.629173331547186\n",
      "When time is : 90, get best_k: 9.307556520438814 best_b: -36.045310562456685, and the loss is: 43.628324570602054\n",
      "When time is : 91, get best_k: 9.308403949170243 best_b: -36.04514350822469, and the loss is: 43.62760905307781\n",
      "When time is : 92, get best_k: 9.309181501946899 best_b: -36.04498743966065, and the loss is: 43.62700583409679\n",
      "When time is : 93, get best_k: 9.30989490543507 best_b: -36.044841456503576, and the loss is: 43.626497261162235\n",
      "When time is : 94, get best_k: 9.310549416974387 best_b: -36.044704732273004, and the loss is: 43.626068456620004\n",
      "When time is : 95, get best_k: 9.311149863041303 best_b: -36.04457650822235, and the loss is: 43.62570688147372\n",
      "When time is : 96, get best_k: 9.311700674560315 best_b: -36.04445608778779, and the loss is: 43.625401967765164\n",
      "When time is : 97, get best_k: 9.312205919321267 best_b: -36.04434283149213, and the loss is: 43.62514480874139\n",
      "When time is : 98, get best_k: 9.312669331739901 best_b: -36.04423615226626, and the loss is: 43.624927897725456\n",
      "When time is : 99, get best_k: 9.31309434017941 best_b: -36.04413551115408, and the loss is: 43.62474490803501\n",
      "When time is : 100, get best_k: 9.313484092032839 best_b: -36.04404041336944, and the loss is: 43.624590507495434\n",
      "When time is : 101, get best_k: 9.313841476749895 best_b: -36.04395040467617, and the loss is: 43.62446020211096\n",
      "When time is : 102, get best_k: 9.314169146976578 best_b: -36.04386506806485, and the loss is: 43.6243502043088\n",
      "When time is : 103, get best_k: 9.314469537962346 best_b: -36.04378402070189, and the loss is: 43.62425732189467\n",
      "When time is : 104, get best_k: 9.314744885376752 best_b: -36.0437069111287, and the loss is: 43.624178864463936\n",
      "When time is : 105, get best_k: 9.314997241665944 best_b: -36.04363341669032, and the loss is: 43.62411256452373\n",
      "When time is : 106, get best_k: 9.31522849106866 best_b: -36.04356324117484, and the loss is: 43.62405651101433\n",
      "When time is : 107, get best_k: 9.315440363401605 best_b: -36.04349611264628, and the loss is: 43.624009093280634\n",
      "When time is : 108, get best_k: 9.31563444671504 best_b: -36.043431781455084, and the loss is: 43.62396895385058\n",
      "When time is : 109, get best_k: 9.3158121989112 best_b: -36.0433700184116, and the loss is: 43.623934948636865\n",
      "When time is : 110, get best_k: 9.315974958410527 best_b: -36.043310613109334, and the loss is: 43.623906113394106\n",
      "When time is : 111, get best_k: 9.316123953943743 best_b: -36.043253372385564, and the loss is: 43.6238816354494\n",
      "When time is : 112, get best_k: 9.316260313541433 best_b: -36.043198118908144, and the loss is: 43.62386082987601\n",
      "When time is : 113, get best_k: 9.316385072786886 best_b: -36.04314468987811, and the loss is: 43.623843119412534\n",
      "When time is : 114, get best_k: 9.316499182392574 best_b: -36.04309293583863, and the loss is: 43.623828017538884\n",
      "When time is : 115, get best_k: 9.316603515155707 best_b: -36.04304271958153, and the loss is: 43.623815114212356\n",
      "When time is : 116, get best_k: 9.316698872343744 best_b: -36.042993915143484, and the loss is: 43.623804063845945\n",
      "When time is : 117, get best_k: 9.316785989556593 best_b: -36.04294640688444, and the loss is: 43.62379457517638\n",
      "When time is : 118, get best_k: 9.316865542108358 best_b: -36.04290008864158, and the loss is: 43.62378640272483\n",
      "When time is : 119, get best_k: 9.316938149968049 best_b: -36.04285486295261, and the loss is: 43.62377933959994\n",
      "When time is : 120, get best_k: 9.31700438229536 best_b: -36.04281064034272, and the loss is: 43.623773211432145\n",
      "When time is : 121, get best_k: 9.317064761604732 best_b: -36.042767338669975, and the loss is: 43.62376787126148\n",
      "When time is : 122, get best_k: 9.317119767588137 best_b: -36.04272488252434, and the loss is: 43.62376319522912\n",
      "When time is : 123, get best_k: 9.317169840624585 best_b: -36.04268320267599, and the loss is: 43.62375907894566\n",
      "When time is : 124, get best_k: 9.317215385002001 best_b: -36.042642235568785, and the loss is: 43.62375543443124\n",
      "When time is : 125, get best_k: 9.317256771875051 best_b: -36.04260192285532, and the loss is: 43.62375218753567\n",
      "When time is : 126, get best_k: 9.31729434198057 best_b: -36.04256221097001, and the loss is: 43.623749275764574\n",
      "When time is : 127, get best_k: 9.31732840813044 best_b: -36.04252305073723, and the loss is: 43.6237466464473\n",
      "When time is : 128, get best_k: 9.317359257500167 best_b: -36.042484397011506, and the loss is: 43.62374425519261\n",
      "When time is : 129, get best_k: 9.317387153729907 best_b: -36.04244620834725, and the loss is: 43.62374206458729\n",
      "When time is : 130, get best_k: 9.317412338853291 best_b: -36.04240844669554, and the loss is: 43.62374004309907\n",
      "When time is : 131, get best_k: 9.317435035068177 best_b: -36.042371077125715, and the loss is: 43.62373816415249\n",
      "When time is : 132, get best_k: 9.317455446362287 best_b: -36.042334067569854, and the loss is: 43.6237364053494\n",
      "When time is : 133, get best_k: 9.31747376000561 best_b: -36.042297388588146, and the loss is: 43.62373474781258\n",
      "When time is : 134, get best_k: 9.3174901479205 best_b: -36.04226101315351, and the loss is: 43.623733175632196\n",
      "When time is : 135, get best_k: 9.317504767939479 best_b: -36.04222491645384, and the loss is: 43.62373167539926\n",
      "When time is : 136, get best_k: 9.317517764959968 best_b: -36.042189075710525, and the loss is: 43.623730235812516\n",
      "When time is : 137, get best_k: 9.317529272004379 best_b: -36.04215347001174, and the loss is: 43.62372884734739\n",
      "When time is : 138, get best_k: 9.317539411193323 best_b: -36.04211808015949, and the loss is: 43.62372750197618\n",
      "When time is : 139, get best_k: 9.317548294639067 best_b: -36.04208288852913, and the loss is: 43.62372619293338\n",
      "When time is : 140, get best_k: 9.31755602526576 best_b: -36.04204787894045, and the loss is: 43.62372491451686\n",
      "When time is : 141, get best_k: 9.317562697562444 best_b: -36.042013036539274, and the loss is: 43.62372366192084\n",
      "When time is : 142, get best_k: 9.317568398274346 best_b: -36.04197834768879, and the loss is: 43.62372243109483\n",
      "When time is : 143, get best_k: 9.317573207037526 best_b: -36.041943799869784, and the loss is: 43.62372121862526\n",
      "When time is : 144, get best_k: 9.3175771969615 best_b: -36.04190938158906, and the loss is: 43.62372002163504\n",
      "When time is : 145, get best_k: 9.317580435164121 best_b: -36.04187508229531, and the loss is: 43.62371883769931\n",
      "When time is : 146, get best_k: 9.31758298326263 best_b: -36.041840892302, and the loss is: 43.62371766477449\n",
      "When time is : 147, get best_k: 9.317584897824448 best_b: -36.04180680271641, and the loss is: 43.62371650113818\n",
      "When time is : 148, get best_k: 9.317586230781032 best_b: -36.04177280537463, and the loss is: 43.623715345338596\n",
      "When time is : 149, get best_k: 9.317587029807823 best_b: -36.04173889278182, and the loss is: 43.62371419615241\n",
      "When time is : 150, get best_k: 9.317587338673038 best_b: -36.04170505805738, and the loss is: 43.62371305254837\n",
      "When time is : 151, get best_k: 9.317587197557884 best_b: -36.0416712948846, and the loss is: 43.6237119136575\n",
      "When time is : 152, get best_k: 9.317586643350536 best_b: -36.04163759746445, and the loss is: 43.62371077874731\n",
      "When time is : 153, get best_k: 9.317585709916012 best_b: -36.04160396047316, and the loss is: 43.623709647200464\n",
      "When time is : 154, get best_k: 9.317584428343936 best_b: -36.04157037902326, and the loss is: 43.62370851849667\n",
      "When time is : 155, get best_k: 9.317582827175995 best_b: -36.04153684862784, and the loss is: 43.62370739219751\n",
      "When time is : 156, get best_k: 9.31758093261475 best_b: -36.0415033651677, and the loss is: 43.62370626793341\n",
      "When time is : 157, get best_k: 9.317578768715343 best_b: -36.04146992486123, and the loss is: 43.623705145392776\n",
      "When time is : 158, get best_k: 9.317576357561489 best_b: -36.041436524236744, and the loss is: 43.62370402431328\n",
      "When time is : 159, get best_k: 9.317573719427036 best_b: -36.041403160107066, and the loss is: 43.62370290447351\n",
      "When time is : 160, get best_k: 9.317570872924302 best_b: -36.04136982954623, and the loss is: 43.623701785687075\n",
      "When time is : 161, get best_k: 9.317567835140233 best_b: -36.04133652986805, and the loss is: 43.62370066779677\n",
      "When time is : 162, get best_k: 9.317564621761425 best_b: -36.0413032586065, and the loss is: 43.623699550670224\n",
      "When time is : 163, get best_k: 9.317561247188884 best_b: -36.04127001349765, and the loss is: 43.623698434195724\n",
      "When time is : 164, get best_k: 9.317557724643388 best_b: -36.04123679246312, and the loss is: 43.623697318279184\n",
      "When time is : 165, get best_k: 9.317554066262211 best_b: -36.04120359359483, and the loss is: 43.623696202841415\n",
      "When time is : 166, get best_k: 9.31755028318792 best_b: -36.0411704151411, and the loss is: 43.62369508781542\n",
      "When time is : 167, get best_k: 9.317546385649898 best_b: -36.0411372554938, and the loss is: 43.623693973144924\n",
      "When time is : 168, get best_k: 9.317542383039182 best_b: -36.041104113176594, and the loss is: 43.62369285878258\n",
      "When time is : 169, get best_k: 9.317538283977173 best_b: -36.04107098683413, and the loss is: 43.62369174468824\n",
      "When time is : 170, get best_k: 9.317534096378704 best_b: -36.04103787522214, and the loss is: 43.62369063082824\n",
      "When time is : 171, get best_k: 9.317529827509954 best_b: -36.04100477719832, and the loss is: 43.623689517174036\n",
      "When time is : 172, get best_k: 9.317525484041603 best_b: -36.04097169171399, and the loss is: 43.623688403701806\n",
      "When time is : 173, get best_k: 9.317521072097637 best_b: -36.04093861780641, and the loss is: 43.6236872903914\n",
      "When time is : 174, get best_k: 9.317516597300157 best_b: -36.04090555459174, and the loss is: 43.62368617722573\n",
      "When time is : 175, get best_k: 9.317512064810503 best_b: -36.04087250125856, and the loss is: 43.62368506419043\n",
      "When time is : 176, get best_k: 9.31750747936702 best_b: -36.04083945706197, and the loss is: 43.62368395127343\n",
      "When time is : 177, get best_k: 9.317502845319725 best_b: -36.0408064213181, and the loss is: 43.62368283846452\n",
      "When time is : 178, get best_k: 9.317498166662128 best_b: -36.040773393399135, and the loss is: 43.6236817257552\n",
      "When time is : 179, get best_k: 9.317493447060455 best_b: -36.0407403727287, and the loss is: 43.62368061313816\n",
      "When time is : 180, get best_k: 9.317488689880468 best_b: -36.04070735877766, and the loss is: 43.623679500607295\n",
      "When time is : 181, get best_k: 9.317483898212085 best_b: -36.040674351060254, and the loss is: 43.623678388157494\n",
      "When time is : 182, get best_k: 9.317479074891995 best_b: -36.04064134913051, and the loss is: 43.623677275784395\n",
      "When time is : 183, get best_k: 9.317474222524407 best_b: -36.04060835257902, and the loss is: 43.62367616348436\n",
      "When time is : 184, get best_k: 9.317469343500099 best_b: -36.04057536102992, and the loss is: 43.62367505125433\n",
      "When time is : 185, get best_k: 9.317464440013916 best_b: -36.040542374138155, and the loss is: 43.623673939091674\n",
      "When time is : 186, get best_k: 9.317459514080827 best_b: -36.04050939158694, and the loss is: 43.623672826994174\n",
      "When time is : 187, get best_k: 9.31745456755066 best_b: -36.04047641308544, and the loss is: 43.623671714960146\n",
      "When time is : 188, get best_k: 9.317449602121647 best_b: -36.04044343836669, and the loss is: 43.62367060298784\n",
      "When time is : 189, get best_k: 9.317444619352834 best_b: -36.04041046718555, and the loss is: 43.62366949107608\n",
      "When time is : 190, get best_k: 9.317439620675502 best_b: -36.04037749931702, and the loss is: 43.62366837922367\n",
      "When time is : 191, get best_k: 9.317434607403632 best_b: -36.04034453455451, and the loss is: 43.62366726742968\n",
      "When time is : 192, get best_k: 9.317429580743513 best_b: -36.040311572708355, and the loss is: 43.6236661556934\n",
      "When time is : 193, get best_k: 9.317424541802577 best_b: -36.04027861360446, and the loss is: 43.62366504401412\n",
      "When time is : 194, get best_k: 9.317419491597494 best_b: -36.04024565708296, and the loss is: 43.623663932391324\n",
      "When time is : 195, get best_k: 9.317414431061616 best_b: -36.040212702997124, and the loss is: 43.62366282082445\n",
      "When time is : 196, get best_k: 9.3174093610518 best_b: -36.04017975121222, and the loss is: 43.623661709313204\n",
      "When time is : 197, get best_k: 9.31740428235468 best_b: -36.04014680160457, and the loss is: 43.62366059785712\n",
      "When time is : 198, get best_k: 9.31739919569242 best_b: -36.04011385406063, and the loss is: 43.62365948645614\n",
      "When time is : 199, get best_k: 9.317394101728002 best_b: -36.04008090847615, and the loss is: 43.62365837510968\n",
      "When time is : 200, get best_k: 9.31738900107007 best_b: -36.04004796475543, and the loss is: 43.62365726381787\n",
      "When time is : 201, get best_k: 9.31738389427739 best_b: -36.040015022810614, and the loss is: 43.62365615258036\n",
      "When time is : 202, get best_k: 9.317378781862931 best_b: -36.03998208256104, and the loss is: 43.62365504139706\n",
      "When time is : 203, get best_k: 9.317373664297625 best_b: -36.03994914393265, and the loss is: 43.62365393026788\n",
      "When time is : 204, get best_k: 9.317368542013806 best_b: -36.03991620685747, and the loss is: 43.623652819192635\n",
      "When time is : 205, get best_k: 9.317363415408376 best_b: -36.03988327127307, and the loss is: 43.62365170817129\n",
      "When time is : 206, get best_k: 9.317358284845712 best_b: -36.03985033712216, and the loss is: 43.62365059720383\n",
      "When time is : 207, get best_k: 9.317353150660324 best_b: -36.039817404352135, and the loss is: 43.62364948629004\n",
      "When time is : 208, get best_k: 9.317348013159311 best_b: -36.03978447291469, and the loss is: 43.623648375429944\n",
      "When time is : 209, get best_k: 9.3173428726246 best_b: -36.03975154276549, and the loss is: 43.62364726462355\n",
      "When time is : 210, get best_k: 9.317337729315016 best_b: -36.03971861386382, and the loss is: 43.62364615387076\n",
      "When time is : 211, get best_k: 9.317332583468168 best_b: -36.03968568617232, and the loss is: 43.623645043171486\n",
      "When time is : 212, get best_k: 9.317327435302197 best_b: -36.03965275965667, and the loss is: 43.6236439325258\n",
      "When time is : 213, get best_k: 9.31732228501736 best_b: -36.03961983428537, and the loss is: 43.623642821933686\n",
      "When time is : 214, get best_k: 9.317317132797506 best_b: -36.03958691002949, and the loss is: 43.62364171139513\n",
      "When time is : 215, get best_k: 9.317311978811414 best_b: -36.039553986862494, and the loss is: 43.62364060090998\n",
      "When time is : 216, get best_k: 9.317306823214034 best_b: -36.039521064759995, and the loss is: 43.62363949047828\n",
      "When time is : 217, get best_k: 9.317301666147614 best_b: -36.03948814369961, and the loss is: 43.62363838010013\n",
      "When time is : 218, get best_k: 9.317296507742743 best_b: -36.03945522366079, and the loss is: 43.6236372697754\n",
      "When time is : 219, get best_k: 9.31729134811931 best_b: -36.03942230462467, and the loss is: 43.6236361595041\n",
      "When time is : 220, get best_k: 9.317286187387376 best_b: -36.03938938657393, and the loss is: 43.623635049286236\n",
      "When time is : 221, get best_k: 9.317281025647985 best_b: -36.03935646949267, and the loss is: 43.62363393912181\n",
      "When time is : 222, get best_k: 9.317275862993895 best_b: -36.03932355336627, and the loss is: 43.62363282901075\n",
      "When time is : 223, get best_k: 9.317270699510267 best_b: -36.03929063818135, and the loss is: 43.62363171895316\n",
      "When time is : 224, get best_k: 9.317265535275277 best_b: -36.03925772392558, and the loss is: 43.62363060894899\n",
      "When time is : 225, get best_k: 9.3172603703607 best_b: -36.03922481058766, and the loss is: 43.62362949899814\n",
      "When time is : 226, get best_k: 9.317255204832422 best_b: -36.03919189815722, and the loss is: 43.623628389100745\n",
      "When time is : 227, get best_k: 9.317250038750934 best_b: -36.03915898662473, and the loss is: 43.62362727925675\n",
      "When time is : 228, get best_k: 9.317244872171768 best_b: -36.039126075981436, and the loss is: 43.62362616946609\n",
      "When time is : 229, get best_k: 9.317239705145903 best_b: -36.03909316621931, and the loss is: 43.623625059728845\n",
      "When time is : 230, get best_k: 9.317234537720143 best_b: -36.039060257330966, and the loss is: 43.62362395004493\n",
      "When time is : 231, get best_k: 9.317229369937452 best_b: -36.03902734930964, and the loss is: 43.62362284041449\n",
      "When time is : 232, get best_k: 9.317224201837275 best_b: -36.038994442149104, and the loss is: 43.62362173083733\n",
      "When time is : 233, get best_k: 9.317219033455823 best_b: -36.03896153584365, and the loss is: 43.62362062131358\n",
      "When time is : 234, get best_k: 9.317213864826341 best_b: -36.03892863038803, and the loss is: 43.6236195118432\n",
      "When time is : 235, get best_k: 9.317208695979346 best_b: -36.03889572577743, and the loss is: 43.623618402426146\n",
      "When time is : 236, get best_k: 9.317203526942858 best_b: -36.038862822007424, and the loss is: 43.62361729306246\n",
      "When time is : 237, get best_k: 9.317198357742598 best_b: -36.03882991907395, and the loss is: 43.623616183752155\n",
      "When time is : 238, get best_k: 9.317193188402177 best_b: -36.03879701697327, and the loss is: 43.623615074495106\n",
      "When time is : 239, get best_k: 9.317188018943273 best_b: -36.038764115701966, and the loss is: 43.62361396529151\n",
      "When time is : 240, get best_k: 9.317182849385787 best_b: -36.03873121525689, and the loss is: 43.62361285614126\n",
      "When time is : 241, get best_k: 9.31717767974799 best_b: -36.038698315635145, and the loss is: 43.62361174704426\n",
      "When time is : 242, get best_k: 9.317172510046651 best_b: -36.03866541683407, and the loss is: 43.623610638000734\n",
      "When time is : 243, get best_k: 9.31716734029717 best_b: -36.03863251885124, and the loss is: 43.623609529010466\n",
      "When time is : 244, get best_k: 9.31716217051368 best_b: -36.0385996216844, and the loss is: 43.623608420073595\n",
      "When time is : 245, get best_k: 9.317157000709159 best_b: -36.03856672533149, and the loss is: 43.623607311189964\n",
      "When time is : 246, get best_k: 9.317151830895519 best_b: -36.03853382979063, and the loss is: 43.62360620235976\n",
      "When time is : 247, get best_k: 9.317146661083695 best_b: -36.03850093506007, and the loss is: 43.6236050935828\n",
      "When time is : 248, get best_k: 9.317141491283728 best_b: -36.03846804113822, and the loss is: 43.623603984859244\n",
      "When time is : 249, get best_k: 9.317136321504835 best_b: -36.038435148023616, and the loss is: 43.62360287618895\n",
      "When time is : 250, get best_k: 9.317131151755476 best_b: -36.03840225571489, and the loss is: 43.623601767572\n",
      "When time is : 251, get best_k: 9.317125982043418 best_b: -36.03836936421082, and the loss is: 43.62360065900842\n",
      "When time is : 252, get best_k: 9.317120812375792 best_b: -36.038336473510256, and the loss is: 43.623599550498064\n",
      "When time is : 253, get best_k: 9.317115642759145 best_b: -36.03830358361215, and the loss is: 43.62359844204103\n",
      "When time is : 254, get best_k: 9.317110473199484 best_b: -36.03827069451554, and the loss is: 43.62359733363736\n",
      "When time is : 255, get best_k: 9.317105303702327 best_b: -36.038237806219534, and the loss is: 43.62359622528696\n",
      "When time is : 256, get best_k: 9.317100134272737 best_b: -36.03820491872332, and the loss is: 43.62359511698988\n",
      "When time is : 257, get best_k: 9.317094964915363 best_b: -36.038172032026154, and the loss is: 43.623594008746096\n",
      "When time is : 258, get best_k: 9.317089795634473 best_b: -36.038139146127335, and the loss is: 43.623592900555586\n",
      "When time is : 259, get best_k: 9.317084626433985 best_b: -36.038106261026236, and the loss is: 43.62359179241843\n",
      "When time is : 260, get best_k: 9.317079457317496 best_b: -36.03807337672227, and the loss is: 43.623590684334545\n",
      "When time is : 261, get best_k: 9.317074288288305 best_b: -36.03804049321489, and the loss is: 43.62358957630396\n",
      "When time is : 262, get best_k: 9.317069119349444 best_b: -36.03800761050362, and the loss is: 43.623588468326616\n",
      "When time is : 263, get best_k: 9.317063950503696 best_b: -36.03797472858798, and the loss is: 43.62358736040261\n",
      "When time is : 264, get best_k: 9.317058781753614 best_b: -36.037941847467565, and the loss is: 43.623586252531915\n",
      "When time is : 265, get best_k: 9.31705361310154 best_b: -36.03790896714198, and the loss is: 43.62358514471445\n",
      "When time is : 266, get best_k: 9.317048444549629 best_b: -36.03787608761087, and the loss is: 43.62358403695026\n",
      "When time is : 267, get best_k: 9.317043276099854 best_b: -36.0378432088739, and the loss is: 43.623582929239355\n",
      "When time is : 268, get best_k: 9.317038107754028 best_b: -36.037810330930775, and the loss is: 43.623581821581695\n",
      "When time is : 269, get best_k: 9.317032939513815 best_b: -36.03777745378121, and the loss is: 43.62358071397742\n",
      "When time is : 270, get best_k: 9.317027771380745 best_b: -36.037744577424945, and the loss is: 43.6235796064263\n",
      "When time is : 271, get best_k: 9.317022603356218 best_b: -36.03771170186174, and the loss is: 43.62357849892846\n",
      "When time is : 272, get best_k: 9.317017435441521 best_b: -36.03767882709137, and the loss is: 43.6235773914839\n",
      "When time is : 273, get best_k: 9.317012267637836 best_b: -36.03764595311363, and the loss is: 43.623576284092614\n",
      "When time is : 274, get best_k: 9.317007099946247 best_b: -36.037613079928335, and the loss is: 43.623575176754585\n",
      "When time is : 275, get best_k: 9.31700193236775 best_b: -36.0375802075353, and the loss is: 43.62357406946981\n",
      "When time is : 276, get best_k: 9.316996764903259 best_b: -36.03754733593437, and the loss is: 43.62357296223832\n",
      "When time is : 277, get best_k: 9.316991597553608 best_b: -36.03751446512539, and the loss is: 43.62357185506001\n",
      "When time is : 278, get best_k: 9.31698643031957 best_b: -36.037481595108225, and the loss is: 43.623570747934984\n",
      "When time is : 279, get best_k: 9.31698126320185 best_b: -36.03744872588274, and the loss is: 43.62356964086317\n",
      "When time is : 280, get best_k: 9.316976096201095 best_b: -36.03741585744881, and the loss is: 43.62356853384468\n",
      "When time is : 281, get best_k: 9.316970929317902 best_b: -36.03738298980633, and the loss is: 43.62356742687942\n",
      "When time is : 282, get best_k: 9.316965762552815 best_b: -36.037350122955196, and the loss is: 43.623566319967324\n",
      "When time is : 283, get best_k: 9.316960595906334 best_b: -36.0373172568953, and the loss is: 43.62356521310853\n",
      "When time is : 284, get best_k: 9.31695542937892 best_b: -36.03728439162656, and the loss is: 43.623564106302915\n",
      "When time is : 285, get best_k: 9.316950262970993 best_b: -36.03725152714888, and the loss is: 43.62356299955056\n",
      "When time is : 286, get best_k: 9.31694509668294 best_b: -36.03721866346219, and the loss is: 43.62356189285143\n",
      "When time is : 287, get best_k: 9.316939930515115 best_b: -36.03718580056641, and the loss is: 43.62356078620556\n",
      "When time is : 288, get best_k: 9.316934764467845 best_b: -36.03715293846147, and the loss is: 43.623559679612924\n",
      "When time is : 289, get best_k: 9.316929598541428 best_b: -36.0371200771473, and the loss is: 43.6235585730734\n",
      "When time is : 290, get best_k: 9.316924432736137 best_b: -36.037087216623846, and the loss is: 43.623557466587165\n",
      "When time is : 291, get best_k: 9.316919267052224 best_b: -36.03705435689104, and the loss is: 43.62355636015411\n",
      "When time is : 292, get best_k: 9.31691410148992 best_b: -36.03702149794883, and the loss is: 43.62355525377429\n",
      "When time is : 293, get best_k: 9.316908936049433 best_b: -36.03698863979716, and the loss is: 43.623554147447635\n",
      "When time is : 294, get best_k: 9.316903770730962 best_b: -36.03695578243599, and the loss is: 43.623553041174354\n",
      "When time is : 295, get best_k: 9.31689860553468 best_b: -36.03692292586526, and the loss is: 43.6235519349541\n",
      "When time is : 296, get best_k: 9.31689344046075 best_b: -36.03689007008494, and the loss is: 43.62355082878716\n",
      "When time is : 297, get best_k: 9.316888275509324 best_b: -36.03685721509497, and the loss is: 43.623549722673346\n",
      "When time is : 298, get best_k: 9.316883110680536 best_b: -36.03682436089532, and the loss is: 43.623548616612766\n",
      "When time is : 299, get best_k: 9.316877945974511 best_b: -36.036791507485944, and the loss is: 43.62354751060536\n",
      "When time is : 300, get best_k: 9.316872781391366 best_b: -36.036758654866816, and the loss is: 43.62354640465117\n",
      "When time is : 301, get best_k: 9.316867616931205 best_b: -36.03672580303789, and the loss is: 43.62354529875012\n",
      "When time is : 302, get best_k: 9.316862452594123 best_b: -36.03669295199913, and the loss is: 43.62354419290227\n",
      "When time is : 303, get best_k: 9.31685728838021 best_b: -36.036660101750506, and the loss is: 43.62354308710766\n",
      "When time is : 304, get best_k: 9.316852124289545 best_b: -36.03662725229199, and the loss is: 43.6235419813662\n",
      "When time is : 305, get best_k: 9.316846960322202 best_b: -36.03659440362355, and the loss is: 43.6235408756779\n",
      "When time is : 306, get best_k: 9.31684179647825 best_b: -36.03656155574515, and the loss is: 43.623539770042825\n",
      "When time is : 307, get best_k: 9.31683663275775 best_b: -36.03652870865677, and the loss is: 43.62353866446088\n",
      "When time is : 308, get best_k: 9.316831469160759 best_b: -36.03649586235837, and the loss is: 43.62353755893211\n",
      "When time is : 309, get best_k: 9.316826305687325 best_b: -36.03646301684993, and the loss is: 43.623536453456516\n",
      "When time is : 310, get best_k: 9.3168211423375 best_b: -36.03643017213142, and the loss is: 43.62353534803411\n",
      "When time is : 311, get best_k: 9.316815979111322 best_b: -36.03639732820282, and the loss is: 43.623534242664846\n",
      "When time is : 312, get best_k: 9.316810816008834 best_b: -36.03636448506409, and the loss is: 43.62353313734874\n",
      "When time is : 313, get best_k: 9.316805653030071 best_b: -36.03633164271522, and the loss is: 43.623532032085826\n",
      "When time is : 314, get best_k: 9.316800490175066 best_b: -36.03629880115618, and the loss is: 43.623530926876015\n",
      "When time is : 315, get best_k: 9.316795327443847 best_b: -36.03626596038694, and the loss is: 43.62352982171937\n",
      "When time is : 316, get best_k: 9.316790164836442 best_b: -36.03623312040749, and the loss is: 43.62352871661594\n",
      "When time is : 317, get best_k: 9.316785002352875 best_b: -36.036200281217795, and the loss is: 43.62352761156561\n",
      "When time is : 318, get best_k: 9.316779839993169 best_b: -36.03616744281784, and the loss is: 43.623526506568375\n",
      "When time is : 319, get best_k: 9.316774677757342 best_b: -36.0361346052076, and the loss is: 43.623525401624335\n",
      "When time is : 320, get best_k: 9.316769515645415 best_b: -36.03610176838705, and the loss is: 43.623524296733486\n",
      "When time is : 321, get best_k: 9.316764353657405 best_b: -36.036068932356166, and the loss is: 43.6235231918957\n",
      "When time is : 322, get best_k: 9.316759191793324 best_b: -36.03603609711493, and the loss is: 43.62352208711108\n",
      "When time is : 323, get best_k: 9.316754030053188 best_b: -36.03600326266332, and the loss is: 43.623520982379574\n",
      "When time is : 324, get best_k: 9.316748868437008 best_b: -36.03597042900132, and the loss is: 43.623519877701206\n",
      "When time is : 325, get best_k: 9.316743706944795 best_b: -36.035937596128896, and the loss is: 43.623518773075986\n",
      "When time is : 326, get best_k: 9.316738545576559 best_b: -36.03590476404604, and the loss is: 43.62351766850387\n",
      "When time is : 327, get best_k: 9.31673338433231 best_b: -36.03587193275272, and the loss is: 43.623516563984865\n",
      "When time is : 328, get best_k: 9.316728223212053 best_b: -36.03583910224892, and the loss is: 43.62351545951906\n",
      "When time is : 329, get best_k: 9.316723062215797 best_b: -36.03580627253462, and the loss is: 43.6235143551063\n",
      "When time is : 330, get best_k: 9.316717901343546 best_b: -36.0357734436098, and the loss is: 43.62351325074669\n",
      "When time is : 331, get best_k: 9.316712740595307 best_b: -36.03574061547444, and the loss is: 43.62351214644014\n",
      "When time is : 332, get best_k: 9.316707579971084 best_b: -36.03570778812851, and the loss is: 43.62351104218678\n",
      "When time is : 333, get best_k: 9.316702419470882 best_b: -36.035674961572006, and the loss is: 43.62350993798646\n",
      "When time is : 334, get best_k: 9.316697259094704 best_b: -36.0356421358049, and the loss is: 43.62350883383931\n",
      "When time is : 335, get best_k: 9.316692098842552 best_b: -36.035609310827176, and the loss is: 43.6235077297452\n",
      "When time is : 336, get best_k: 9.31668693871443 best_b: -36.03557648663881, and the loss is: 43.62350662570417\n",
      "When time is : 337, get best_k: 9.316681778710338 best_b: -36.035543663239785, and the loss is: 43.62350552171632\n",
      "When time is : 338, get best_k: 9.316676618830279 best_b: -36.03551084063008, and the loss is: 43.62350441778143\n",
      "When time is : 339, get best_k: 9.316671459074254 best_b: -36.03547801880968, and the loss is: 43.62350331389973\n",
      "When time is : 340, get best_k: 9.316666299442263 best_b: -36.03544519777855, and the loss is: 43.62350221007116\n",
      "When time is : 341, get best_k: 9.316661139934308 best_b: -36.03541237753669, and the loss is: 43.62350110629567\n",
      "When time is : 342, get best_k: 9.316655980550388 best_b: -36.03537955808406, and the loss is: 43.6235000025732\n",
      "When time is : 343, get best_k: 9.316650821290505 best_b: -36.03534673942066, and the loss is: 43.623498898903826\n",
      "When time is : 344, get best_k: 9.316645662154656 best_b: -36.03531392154646, and the loss is: 43.623497795287605\n",
      "When time is : 345, get best_k: 9.316640503142843 best_b: -36.03528110446145, and the loss is: 43.623496691724334\n",
      "When time is : 346, get best_k: 9.316635344255063 best_b: -36.0352482881656, and the loss is: 43.62349558821424\n",
      "When time is : 347, get best_k: 9.316630185491316 best_b: -36.03521547265889, and the loss is: 43.62349448475715\n",
      "When time is : 348, get best_k: 9.316625026851602 best_b: -36.035182657941306, and the loss is: 43.62349338135319\n",
      "When time is : 349, get best_k: 9.316619868335918 best_b: -36.03514984401283, and the loss is: 43.62349227800227\n",
      "When time is : 350, get best_k: 9.316614709944265 best_b: -36.03511703087344, and the loss is: 43.623491174704455\n",
      "When time is : 351, get best_k: 9.316609551676638 best_b: -36.03508421852312, and the loss is: 43.62349007145961\n",
      "When time is : 352, get best_k: 9.316604393533039 best_b: -36.03505140696184, and the loss is: 43.6234889682679\n",
      "When time is : 353, get best_k: 9.316599235513465 best_b: -36.035018596189595, and the loss is: 43.623487865129206\n",
      "When time is : 354, get best_k: 9.316594077617914 best_b: -36.03498578620636, and the loss is: 43.62348676204359\n",
      "When time is : 355, get best_k: 9.316588919846383 best_b: -36.03495297701212, and the loss is: 43.62348565901103\n",
      "When time is : 356, get best_k: 9.316583762198873 best_b: -36.034920168606845, and the loss is: 43.62348455603153\n",
      "When time is : 357, get best_k: 9.316578604675378 best_b: -36.034887360990524, and the loss is: 43.62348345310501\n",
      "When time is : 358, get best_k: 9.316573447275898 best_b: -36.03485455416314, and the loss is: 43.623482350231576\n",
      "When time is : 359, get best_k: 9.316568290000431 best_b: -36.03482174812467, and the loss is: 43.623481247411206\n",
      "When time is : 360, get best_k: 9.316563132848975 best_b: -36.034788942875096, and the loss is: 43.62348014464386\n",
      "When time is : 361, get best_k: 9.316557975821526 best_b: -36.034756138414394, and the loss is: 43.62347904192951\n",
      "When time is : 362, get best_k: 9.316552818918083 best_b: -36.03472333474255, and the loss is: 43.6234779392683\n",
      "When time is : 363, get best_k: 9.316547662138644 best_b: -36.034690531859546, and the loss is: 43.62347683665997\n",
      "When time is : 364, get best_k: 9.316542505483206 best_b: -36.034657729765364, and the loss is: 43.623475734104765\n",
      "When time is : 365, get best_k: 9.316537348951766 best_b: -36.03462492845998, and the loss is: 43.623474631602576\n",
      "When time is : 366, get best_k: 9.31653219254432 best_b: -36.034592127943384, and the loss is: 43.62347352915341\n",
      "When time is : 367, get best_k: 9.316527036260869 best_b: -36.03455932821554, and the loss is: 43.62347242675725\n",
      "When time is : 368, get best_k: 9.316521880101408 best_b: -36.03452652927645, and the loss is: 43.62347132441411\n",
      "When time is : 369, get best_k: 9.316516724065934 best_b: -36.03449373112608, and the loss is: 43.623470222124006\n",
      "When time is : 370, get best_k: 9.316511568154446 best_b: -36.03446093376441, and the loss is: 43.623469119886884\n",
      "When time is : 371, get best_k: 9.316506412366941 best_b: -36.034428137191426, and the loss is: 43.623468017702855\n",
      "When time is : 372, get best_k: 9.316501256703415 best_b: -36.03439534140711, and the loss is: 43.62346691557173\n",
      "When time is : 373, get best_k: 9.316496101163866 best_b: -36.034362546411444, and the loss is: 43.623465813493645\n",
      "When time is : 374, get best_k: 9.31649094574829 best_b: -36.03432975220441, and the loss is: 43.623464711468586\n",
      "When time is : 375, get best_k: 9.316485790456685 best_b: -36.03429695878598, and the loss is: 43.62346360949654\n",
      "When time is : 376, get best_k: 9.31648063528905 best_b: -36.03426416615614, and the loss is: 43.62346250757746\n",
      "When time is : 377, get best_k: 9.31647548024538 best_b: -36.03423137431488, and the loss is: 43.62346140571133\n",
      "When time is : 378, get best_k: 9.316470325325673 best_b: -36.03419858326217, and the loss is: 43.62346030389827\n",
      "When time is : 379, get best_k: 9.316465170529925 best_b: -36.03416579299799, and the loss is: 43.62345920213815\n",
      "When time is : 380, get best_k: 9.316460015858135 best_b: -36.03413300352233, and the loss is: 43.623458100431044\n",
      "When time is : 381, get best_k: 9.3164548613103 best_b: -36.03410021483516, and the loss is: 43.62345699877697\n",
      "When time is : 382, get best_k: 9.316449706886415 best_b: -36.034067426936474, and the loss is: 43.62345589717584\n",
      "When time is : 383, get best_k: 9.316444552586479 best_b: -36.034034639826245, and the loss is: 43.623454795627616\n",
      "When time is : 384, get best_k: 9.316439398410488 best_b: -36.034001853504456, and the loss is: 43.62345369413245\n",
      "When time is : 385, get best_k: 9.31643424435844 best_b: -36.033969067971086, and the loss is: 43.62345259269025\n",
      "When time is : 386, get best_k: 9.316429090430333 best_b: -36.03393628322612, and the loss is: 43.62345149130103\n",
      "When time is : 387, get best_k: 9.316423936626162 best_b: -36.03390349926953, and the loss is: 43.62345038996474\n",
      "When time is : 388, get best_k: 9.316418782945926 best_b: -36.033870716101305, and the loss is: 43.62344928868146\n",
      "When time is : 389, get best_k: 9.31641362938962 best_b: -36.03383793372142, and the loss is: 43.623448187451125\n",
      "When time is : 390, get best_k: 9.316408475957243 best_b: -36.033805152129865, and the loss is: 43.62344708627375\n",
      "When time is : 391, get best_k: 9.316403322648789 best_b: -36.03377237132662, and the loss is: 43.62344598514934\n",
      "When time is : 392, get best_k: 9.316398169464259 best_b: -36.03373959131166, and the loss is: 43.62344488407787\n",
      "When time is : 393, get best_k: 9.316393016403648 best_b: -36.033706812084965, and the loss is: 43.62344378305938\n",
      "When time is : 394, get best_k: 9.316387863466954 best_b: -36.03367403364652, and the loss is: 43.623442682093874\n",
      "When time is : 395, get best_k: 9.316382710654173 best_b: -36.03364125599631, and the loss is: 43.62344158118129\n",
      "When time is : 396, get best_k: 9.316377557965302 best_b: -36.03360847913431, and the loss is: 43.623440480321605\n",
      "When time is : 397, get best_k: 9.316372405400339 best_b: -36.0335757030605, and the loss is: 43.6234393795149\n",
      "When time is : 398, get best_k: 9.31636725295928 best_b: -36.03354292777487, and the loss is: 43.62343827876113\n",
      "When time is : 399, get best_k: 9.316362100642122 best_b: -36.03351015327739, and the loss is: 43.62343717806033\n",
      "When time is : 400, get best_k: 9.316356948448863 best_b: -36.03347737956805, and the loss is: 43.62343607741243\n",
      "When time is : 401, get best_k: 9.3163517963795 best_b: -36.03344460664682, and the loss is: 43.62343497681747\n",
      "When time is : 402, get best_k: 9.31634664443403 best_b: -36.033411834513686, and the loss is: 43.623433876275456\n",
      "When time is : 403, get best_k: 9.31634149261245 best_b: -36.03337906316864, and the loss is: 43.62343277578635\n",
      "When time is : 404, get best_k: 9.316336340914757 best_b: -36.03334629261165, and the loss is: 43.623431675350204\n",
      "When time is : 405, get best_k: 9.316331189340948 best_b: -36.0333135228427, and the loss is: 43.62343057496698\n",
      "When time is : 406, get best_k: 9.31632603789102 best_b: -36.03328075386177, and the loss is: 43.62342947463668\n",
      "When time is : 407, get best_k: 9.31632088656497 best_b: -36.033247985668844, and the loss is: 43.623428374359264\n",
      "When time is : 408, get best_k: 9.316315735362794 best_b: -36.033215218263905, and the loss is: 43.62342727413477\n",
      "When time is : 409, get best_k: 9.31631058428449 best_b: -36.03318245164693, and the loss is: 43.62342617396321\n",
      "When time is : 410, get best_k: 9.316305433330056 best_b: -36.033149685817904, and the loss is: 43.62342507384454\n",
      "When time is : 411, get best_k: 9.316300282499487 best_b: -36.033116920776806, and the loss is: 43.62342397377879\n",
      "When time is : 412, get best_k: 9.316295131792781 best_b: -36.033084156523614, and the loss is: 43.62342287376593\n",
      "When time is : 413, get best_k: 9.316289981209936 best_b: -36.03305139305831, and the loss is: 43.623421773805994\n",
      "When time is : 414, get best_k: 9.316284830750948 best_b: -36.03301863038087, and the loss is: 43.623420673899\n",
      "When time is : 415, get best_k: 9.316279680415814 best_b: -36.032985868491295, and the loss is: 43.62341957404488\n",
      "When time is : 416, get best_k: 9.316274530204531 best_b: -36.032953107389545, and the loss is: 43.62341847424359\n",
      "When time is : 417, get best_k: 9.316269380117097 best_b: -36.03292034707561, and the loss is: 43.62341737449525\n",
      "When time is : 418, get best_k: 9.316264230153507 best_b: -36.03288758754947, and the loss is: 43.623416274799794\n",
      "When time is : 419, get best_k: 9.31625908031376 best_b: -36.032854828811104, and the loss is: 43.62341517515723\n",
      "When time is : 420, get best_k: 9.316253930597853 best_b: -36.0328220708605, and the loss is: 43.623414075567545\n",
      "When time is : 421, get best_k: 9.31624878100578 best_b: -36.03278931369763, and the loss is: 43.62341297603075\n",
      "When time is : 422, get best_k: 9.316243631537542 best_b: -36.03275655732248, and the loss is: 43.62341187654679\n",
      "When time is : 423, get best_k: 9.316238482193135 best_b: -36.03272380173503, and the loss is: 43.6234107771158\n",
      "When time is : 424, get best_k: 9.316233332972555 best_b: -36.03269104693526, and the loss is: 43.62340967773763\n",
      "When time is : 425, get best_k: 9.316228183875799 best_b: -36.03265829292315, and the loss is: 43.62340857841235\n",
      "When time is : 426, get best_k: 9.316223034902865 best_b: -36.032625539698685, and the loss is: 43.62340747913993\n",
      "When time is : 427, get best_k: 9.31621788605375 best_b: -36.03259278726185, and the loss is: 43.62340637992038\n",
      "When time is : 428, get best_k: 9.31621273732845 best_b: -36.03256003561261, and the loss is: 43.62340528075367\n",
      "When time is : 429, get best_k: 9.31620758872696 best_b: -36.03252728475096, and the loss is: 43.623404181639884\n",
      "When time is : 430, get best_k: 9.316202440249283 best_b: -36.03249453467688, and the loss is: 43.623403082578896\n",
      "When time is : 431, get best_k: 9.316197291895412 best_b: -36.032461785390346, and the loss is: 43.623401983570815\n",
      "When time is : 432, get best_k: 9.316192143665344 best_b: -36.032429036891344, and the loss is: 43.62340088461556\n",
      "When time is : 433, get best_k: 9.316186995559077 best_b: -36.03239628917985, and the loss is: 43.62339978571318\n",
      "When time is : 434, get best_k: 9.316181847576608 best_b: -36.03236354225585, and the loss is: 43.62339868686363\n",
      "When time is : 435, get best_k: 9.316176699717934 best_b: -36.032330796119325, and the loss is: 43.623397588066965\n",
      "When time is : 436, get best_k: 9.31617155198305 best_b: -36.03229805077025, and the loss is: 43.623396489323056\n",
      "When time is : 437, get best_k: 9.316166404371955 best_b: -36.032265306208615, and the loss is: 43.62339539063211\n",
      "When time is : 438, get best_k: 9.316161256884648 best_b: -36.03223256243439, and the loss is: 43.623394291993925\n",
      "When time is : 439, get best_k: 9.316156109521122 best_b: -36.03219981944756, and the loss is: 43.6233931934086\n",
      "When time is : 440, get best_k: 9.316150962281377 best_b: -36.03216707724811, and the loss is: 43.62339209487609\n",
      "When time is : 441, get best_k: 9.316145815165408 best_b: -36.03213433583602, and the loss is: 43.623390996396445\n",
      "When time is : 442, get best_k: 9.316140668173212 best_b: -36.03210159521127, and the loss is: 43.6233898979696\n",
      "When time is : 443, get best_k: 9.316135521304787 best_b: -36.03206885537384, and the loss is: 43.62338879959561\n",
      "When time is : 444, get best_k: 9.31613037456013 best_b: -36.03203611632372, and the loss is: 43.623387701274424\n",
      "When time is : 445, get best_k: 9.316125227939239 best_b: -36.03200337806087, and the loss is: 43.62338660300606\n",
      "When time is : 446, get best_k: 9.31612008144211 best_b: -36.03197064058529, and the loss is: 43.62338550479058\n",
      "When time is : 447, get best_k: 9.31611493506874 best_b: -36.03193790389696, and the loss is: 43.62338440662784\n",
      "When time is : 448, get best_k: 9.316109788819125 best_b: -36.03190516799585, and the loss is: 43.62338330851794\n",
      "When time is : 449, get best_k: 9.316104642693263 best_b: -36.031872432881954, and the loss is: 43.62338221046083\n",
      "When time is : 450, get best_k: 9.316099496691152 best_b: -36.031839698555245, and the loss is: 43.62338111245654\n",
      "When time is : 451, get best_k: 9.316094350812786 best_b: -36.031806965015704, and the loss is: 43.62338001450506\n",
      "When time is : 452, get best_k: 9.316089205058166 best_b: -36.03177423226332, and the loss is: 43.623378916606434\n",
      "When time is : 453, get best_k: 9.316084059427286 best_b: -36.03174150029806, and the loss is: 43.62337781876053\n",
      "When time is : 454, get best_k: 9.316078913920146 best_b: -36.031708769119916, and the loss is: 43.623376720967485\n",
      "When time is : 455, get best_k: 9.31607376853674 best_b: -36.03167603872887, and the loss is: 43.623375623227226\n",
      "When time is : 456, get best_k: 9.316068623277065 best_b: -36.031643309124895, and the loss is: 43.6233745255397\n",
      "When time is : 457, get best_k: 9.316063478141121 best_b: -36.03161058030798, and the loss is: 43.62337342790505\n",
      "When time is : 458, get best_k: 9.316058333128902 best_b: -36.0315778522781, and the loss is: 43.62337233032312\n",
      "When time is : 459, get best_k: 9.316053188240408 best_b: -36.03154512503524, and the loss is: 43.62337123279403\n",
      "When time is : 460, get best_k: 9.316048043475634 best_b: -36.03151239857937, and the loss is: 43.62337013531771\n",
      "When time is : 461, get best_k: 9.316042898834576 best_b: -36.03147967291049, and the loss is: 43.62336903789417\n",
      "When time is : 462, get best_k: 9.316037754317234 best_b: -36.031446948028574, and the loss is: 43.6233679405234\n",
      "When time is : 463, get best_k: 9.316032609923603 best_b: -36.031414223933595, and the loss is: 43.62336684320546\n",
      "When time is : 464, get best_k: 9.31602746565368 best_b: -36.03138150062554, and the loss is: 43.62336574594022\n",
      "When time is : 465, get best_k: 9.316022321507461 best_b: -36.031348778104395, and the loss is: 43.62336464872781\n",
      "When time is : 466, get best_k: 9.316017177484946 best_b: -36.03131605637013, and the loss is: 43.62336355156813\n",
      "When time is : 467, get best_k: 9.31601203358613 best_b: -36.031283335422735, and the loss is: 43.623362454461244\n",
      "When time is : 468, get best_k: 9.31600688981101 best_b: -36.03125061526219, and the loss is: 43.62336135740707\n",
      "When time is : 469, get best_k: 9.316001746159586 best_b: -36.03121789588847, and the loss is: 43.62336026040572\n",
      "When time is : 470, get best_k: 9.31599660263185 best_b: -36.03118517730156, and the loss is: 43.62335916345713\n",
      "When time is : 471, get best_k: 9.315991459227803 best_b: -36.03115245950144, and the loss is: 43.62335806656118\n",
      "When time is : 472, get best_k: 9.31598631594744 best_b: -36.031119742488094, and the loss is: 43.6233569697181\n",
      "When time is : 473, get best_k: 9.315981172790758 best_b: -36.0310870262615, and the loss is: 43.6233558729278\n",
      "When time is : 474, get best_k: 9.315976029757756 best_b: -36.031054310821645, and the loss is: 43.623354776190176\n",
      "When time is : 475, get best_k: 9.31597088684843 best_b: -36.0310215961685, and the loss is: 43.62335367950529\n",
      "When time is : 476, get best_k: 9.315965744062774 best_b: -36.030988882302054, and the loss is: 43.62335258287316\n",
      "When time is : 477, get best_k: 9.31596060140079 best_b: -36.030956169222286, and the loss is: 43.623351486293785\n",
      "When time is : 478, get best_k: 9.315955458862472 best_b: -36.03092345692917, and the loss is: 43.623350389767154\n",
      "When time is : 479, get best_k: 9.315950316447818 best_b: -36.0308907454227, and the loss is: 43.623349293293266\n",
      "When time is : 480, get best_k: 9.315945174156825 best_b: -36.03085803470285, and the loss is: 43.623348196872115\n",
      "When time is : 481, get best_k: 9.31594003198949 best_b: -36.0308253247696, and the loss is: 43.62334710050366\n",
      "When time is : 482, get best_k: 9.31593488994581 best_b: -36.030792615622936, and the loss is: 43.623346004187944\n",
      "When time is : 483, get best_k: 9.31592974802578 best_b: -36.03075990726283, and the loss is: 43.623344907924974\n",
      "When time is : 484, get best_k: 9.3159246062294 best_b: -36.03072719968928, and the loss is: 43.62334381171469\n",
      "When time is : 485, get best_k: 9.315919464556666 best_b: -36.03069449290225, and the loss is: 43.623342715557186\n",
      "When time is : 486, get best_k: 9.315914323007576 best_b: -36.03066178690173, and the loss is: 43.62334161945237\n",
      "When time is : 487, get best_k: 9.315909181582125 best_b: -36.0306290816877, and the loss is: 43.62334052340026\n",
      "When time is : 488, get best_k: 9.31590404028031 best_b: -36.03059637726014, and the loss is: 43.62333942740088\n",
      "When time is : 489, get best_k: 9.31589889910213 best_b: -36.03056367361903, and the loss is: 43.6233383314542\n",
      "When time is : 490, get best_k: 9.315893758047581 best_b: -36.030530970764346, and the loss is: 43.623337235560236\n",
      "When time is : 491, get best_k: 9.315888617116661 best_b: -36.03049826869608, and the loss is: 43.623336139718994\n",
      "When time is : 492, get best_k: 9.315883476309365 best_b: -36.030465567414204, and the loss is: 43.62333504393042\n",
      "When time is : 493, get best_k: 9.31587833562569 best_b: -36.03043286691871, and the loss is: 43.62333394819456\n",
      "When time is : 494, get best_k: 9.315873195065636 best_b: -36.030400167209564, and the loss is: 43.6233328525114\n",
      "When time is : 495, get best_k: 9.315868054629199 best_b: -36.03036746828676, and the loss is: 43.62333175688093\n",
      "When time is : 496, get best_k: 9.315862914316375 best_b: -36.030334770150276, and the loss is: 43.623330661303164\n",
      "When time is : 497, get best_k: 9.31585777412716 best_b: -36.03030207280009, and the loss is: 43.623329565778\n",
      "When time is : 498, get best_k: 9.315852634061553 best_b: -36.030269376236184, and the loss is: 43.62332847030566\n",
      "When time is : 499, get best_k: 9.31584749411955 best_b: -36.03023668045854, and the loss is: 43.623327374885946\n",
      "When time is : 500, get best_k: 9.315842354301148 best_b: -36.03020398546714, and the loss is: 43.623326279518935\n",
      "When time is : 501, get best_k: 9.315837214606345 best_b: -36.030171291261965, and the loss is: 43.6233251842046\n",
      "When time is : 502, get best_k: 9.315832075035138 best_b: -36.03013859784299, and the loss is: 43.623324088942944\n",
      "When time is : 503, get best_k: 9.315826935587522 best_b: -36.030105905210206, and the loss is: 43.62332299373393\n",
      "When time is : 504, get best_k: 9.315821796263496 best_b: -36.030073213363586, and the loss is: 43.62332189857764\n",
      "When time is : 505, get best_k: 9.315816657063056 best_b: -36.03004052230312, and the loss is: 43.62332080347394\n",
      "When time is : 506, get best_k: 9.3158115179862 best_b: -36.03000783202878, and the loss is: 43.62331970842299\n",
      "When time is : 507, get best_k: 9.315806379032924 best_b: -36.02997514254055, and the loss is: 43.62331861342471\n",
      "When time is : 508, get best_k: 9.315801240203227 best_b: -36.02994245383841, and the loss is: 43.623317518478984\n",
      "When time is : 509, get best_k: 9.315796101497103 best_b: -36.02990976592234, and the loss is: 43.62331642358601\n",
      "When time is : 510, get best_k: 9.315790962914551 best_b: -36.029877078792325, and the loss is: 43.62331532874566\n",
      "When time is : 511, get best_k: 9.315785824455569 best_b: -36.02984439244835, and the loss is: 43.62331423395795\n",
      "When time is : 512, get best_k: 9.315780686120151 best_b: -36.029811706890385, and the loss is: 43.623313139222944\n",
      "When time is : 513, get best_k: 9.315775547908297 best_b: -36.02977902211842, and the loss is: 43.623312044540626\n",
      "When time is : 514, get best_k: 9.315770409820002 best_b: -36.02974633813243, and the loss is: 43.62331094991085\n",
      "When time is : 515, get best_k: 9.315765271855264 best_b: -36.02971365493241, and the loss is: 43.62330985533378\n",
      "When time is : 516, get best_k: 9.31576013401408 best_b: -36.02968097251832, and the loss is: 43.62330876080935\n",
      "When time is : 517, get best_k: 9.315754996296448 best_b: -36.02964829089015, and the loss is: 43.623307666337524\n",
      "When time is : 518, get best_k: 9.315749858702363 best_b: -36.029615610047884, and the loss is: 43.62330657191834\n",
      "When time is : 519, get best_k: 9.315744721231821 best_b: -36.029582929991506, and the loss is: 43.623305477551824\n",
      "When time is : 520, get best_k: 9.315739583884822 best_b: -36.02955025072099, and the loss is: 43.62330438323799\n",
      "When time is : 521, get best_k: 9.315734446661363 best_b: -36.029517572236315, and the loss is: 43.623303288976665\n",
      "When time is : 522, get best_k: 9.315729309561439 best_b: -36.029484894537475, and the loss is: 43.62330219476803\n",
      "When time is : 523, get best_k: 9.315724172585048 best_b: -36.02945221762444, and the loss is: 43.62330110061202\n",
      "When time is : 524, get best_k: 9.315719035732187 best_b: -36.02941954149719, and the loss is: 43.62330000650866\n",
      "When time is : 525, get best_k: 9.315713899002853 best_b: -36.02938686615572, and the loss is: 43.62329891245784\n",
      "When time is : 526, get best_k: 9.315708762397044 best_b: -36.02935419159999, and the loss is: 43.62329781845969\n",
      "When time is : 527, get best_k: 9.315703625914756 best_b: -36.02932151783, and the loss is: 43.62329672451418\n",
      "When time is : 528, get best_k: 9.315698489555984 best_b: -36.02928884484572, and the loss is: 43.62329563062125\n",
      "When time is : 529, get best_k: 9.315693353320729 best_b: -36.02925617264714, and the loss is: 43.62329453678088\n",
      "When time is : 530, get best_k: 9.315688217208987 best_b: -36.02922350123423, and the loss is: 43.6232934429932\n",
      "When time is : 531, get best_k: 9.315683081220753 best_b: -36.02919083060698, and the loss is: 43.62329234925809\n",
      "When time is : 532, get best_k: 9.315677945356025 best_b: -36.02915816076536, and the loss is: 43.62329125557558\n",
      "When time is : 533, get best_k: 9.315672809614801 best_b: -36.029125491709365, and the loss is: 43.623290161945704\n",
      "When time is : 534, get best_k: 9.315667673997078 best_b: -36.02909282343897, and the loss is: 43.62328906836838\n",
      "When time is : 535, get best_k: 9.31566253850285 best_b: -36.02906015595416, and the loss is: 43.62328797484364\n",
      "When time is : 536, get best_k: 9.31565740313212 best_b: -36.029027489254915, and the loss is: 43.6232868813715\n",
      "When time is : 537, get best_k: 9.315652267884879 best_b: -36.02899482334121, and the loss is: 43.62328578795194\n",
      "When time is : 538, get best_k: 9.315647132761127 best_b: -36.02896215821303, and the loss is: 43.62328469458503\n",
      "When time is : 539, get best_k: 9.31564199776086 best_b: -36.02892949387035, and the loss is: 43.62328360127067\n",
      "When time is : 540, get best_k: 9.315636862884075 best_b: -36.02889683031316, and the loss is: 43.6232825080089\n",
      "When time is : 541, get best_k: 9.31563172813077 best_b: -36.028864167541435, and the loss is: 43.62328141479967\n",
      "When time is : 542, get best_k: 9.31562659350094 best_b: -36.02883150555516, and the loss is: 43.623280321643065\n",
      "When time is : 543, get best_k: 9.315621458994586 best_b: -36.02879884435432, and the loss is: 43.62327922853903\n",
      "When time is : 544, get best_k: 9.315616324611703 best_b: -36.02876618393889, and the loss is: 43.623278135487496\n",
      "When time is : 545, get best_k: 9.315611190352287 best_b: -36.028733524308855, and the loss is: 43.62327704248862\n",
      "When time is : 546, get best_k: 9.315606056216335 best_b: -36.02870086546419, and the loss is: 43.62327594954228\n",
      "When time is : 547, get best_k: 9.315600922203846 best_b: -36.02866820740488, and the loss is: 43.62327485664844\n",
      "When time is : 548, get best_k: 9.315595788314814 best_b: -36.0286355501309, and the loss is: 43.62327376380721\n",
      "When time is : 549, get best_k: 9.31559065454924 best_b: -36.028602893642244, and the loss is: 43.62327267101861\n",
      "When time is : 550, get best_k: 9.315585520907117 best_b: -36.02857023793889, and the loss is: 43.623271578282505\n",
      "When time is : 551, get best_k: 9.315580387388444 best_b: -36.02853758302081, and the loss is: 43.62327048559896\n",
      "When time is : 552, get best_k: 9.315575253993218 best_b: -36.02850492888798, and the loss is: 43.62326939296797\n",
      "When time is : 553, get best_k: 9.315570120721437 best_b: -36.0284722755404, and the loss is: 43.6232683003895\n",
      "When time is : 554, get best_k: 9.315564987573097 best_b: -36.02843962297805, and the loss is: 43.62326720786365\n",
      "When time is : 555, get best_k: 9.315559854548194 best_b: -36.028406971200894, and the loss is: 43.62326611539028\n",
      "When time is : 556, get best_k: 9.315554721646727 best_b: -36.028374320208925, and the loss is: 43.62326502296939\n",
      "When time is : 557, get best_k: 9.315549588868691 best_b: -36.02834167000212, and the loss is: 43.62326393060108\n",
      "When time is : 558, get best_k: 9.315544456214084 best_b: -36.028309020580465, and the loss is: 43.62326283828539\n",
      "When time is : 559, get best_k: 9.315539323682904 best_b: -36.02827637194394, and the loss is: 43.62326174602218\n",
      "When time is : 560, get best_k: 9.315534191275146 best_b: -36.02824372409252, and the loss is: 43.62326065381148\n",
      "When time is : 561, get best_k: 9.315529058990808 best_b: -36.02821107702619, and the loss is: 43.62325956165332\n",
      "When time is : 562, get best_k: 9.315523926829888 best_b: -36.02817843074494, and the loss is: 43.62325846954777\n",
      "When time is : 563, get best_k: 9.315518794792382 best_b: -36.02814578524873, and the loss is: 43.62325737749465\n",
      "When time is : 564, get best_k: 9.315513662878288 best_b: -36.02811314053756, and the loss is: 43.62325628549405\n",
      "When time is : 565, get best_k: 9.315508531087602 best_b: -36.02808049661141, and the loss is: 43.62325519354597\n",
      "When time is : 566, get best_k: 9.31550339942032 best_b: -36.02804785347025, and the loss is: 43.62325410165045\n",
      "When time is : 567, get best_k: 9.315498267876443 best_b: -36.02801521111407, and the loss is: 43.623253009807414\n",
      "When time is : 568, get best_k: 9.315493136455963 best_b: -36.02798256954284, and the loss is: 43.62325191801685\n",
      "When time is : 569, get best_k: 9.31548800515888 best_b: -36.027949928756556, and the loss is: 43.62325082627886\n",
      "When time is : 570, get best_k: 9.315482873985191 best_b: -36.02791728875519, and the loss is: 43.62324973459335\n",
      "When time is : 571, get best_k: 9.315477742934892 best_b: -36.02788464953873, and the loss is: 43.62324864296034\n",
      "When time is : 572, get best_k: 9.31547261200798 best_b: -36.02785201110714, and the loss is: 43.62324755137986\n",
      "When time is : 573, get best_k: 9.315467481204454 best_b: -36.027819373460424, and the loss is: 43.62324645985187\n",
      "When time is : 574, get best_k: 9.315462350524308 best_b: -36.02778673659855, and the loss is: 43.6232453683764\n",
      "When time is : 575, get best_k: 9.315457219967541 best_b: -36.027754100521506, and the loss is: 43.62324427695334\n",
      "When time is : 576, get best_k: 9.315452089534151 best_b: -36.02772146522926, and the loss is: 43.62324318558284\n",
      "When time is : 577, get best_k: 9.315446959224133 best_b: -36.027688830721814, and the loss is: 43.62324209426473\n",
      "When time is : 578, get best_k: 9.315441829037484 best_b: -36.02765619699913, and the loss is: 43.62324100299922\n",
      "When time is : 579, get best_k: 9.315436698974203 best_b: -36.0276235640612, and the loss is: 43.62323991178613\n",
      "When time is : 580, get best_k: 9.315431569034285 best_b: -36.027590931908, and the loss is: 43.62323882062556\n",
      "When time is : 581, get best_k: 9.315426439217728 best_b: -36.02755830053952, and the loss is: 43.623237729517484\n",
      "When time is : 582, get best_k: 9.31542130952453 best_b: -36.02752566995572, and the loss is: 43.62323663846181\n",
      "When time is : 583, get best_k: 9.315416179954685 best_b: -36.02749304015661, and the loss is: 43.623235547458684\n",
      "When time is : 584, get best_k: 9.315411050508192 best_b: -36.027460411142144, and the loss is: 43.623234456508\n",
      "When time is : 585, get best_k: 9.31540592118505 best_b: -36.02742778291232, and the loss is: 43.62323336560975\n",
      "When time is : 586, get best_k: 9.315400791985253 best_b: -36.02739515546711, and the loss is: 43.623232274763986\n",
      "When time is : 587, get best_k: 9.315395662908799 best_b: -36.027362528806506, and the loss is: 43.62323118397068\n",
      "When time is : 588, get best_k: 9.315390533955684 best_b: -36.02732990293048, and the loss is: 43.62323009322989\n",
      "When time is : 589, get best_k: 9.315385405125907 best_b: -36.02729727783902, and the loss is: 43.623229002541485\n",
      "When time is : 590, get best_k: 9.315380276419464 best_b: -36.0272646535321, and the loss is: 43.623227911905566\n",
      "When time is : 591, get best_k: 9.315375147836352 best_b: -36.027232030009706, and the loss is: 43.62322682132213\n",
      "When time is : 592, get best_k: 9.31537001937657 best_b: -36.027199407271816, and the loss is: 43.62322573079108\n",
      "When time is : 593, get best_k: 9.315364891040112 best_b: -36.02716678531841, and the loss is: 43.62322464031256\n",
      "When time is : 594, get best_k: 9.315359762826976 best_b: -36.027134164149466, and the loss is: 43.62322354988646\n",
      "When time is : 595, get best_k: 9.315354634737158 best_b: -36.02710154376498, and the loss is: 43.62322245951278\n",
      "When time is : 596, get best_k: 9.315349506770657 best_b: -36.027068924164915, and the loss is: 43.623221369191505\n",
      "When time is : 597, get best_k: 9.31534437892747 best_b: -36.02703630534926, and the loss is: 43.62322027892273\n",
      "When time is : 598, get best_k: 9.315339251207593 best_b: -36.02700368731801, and the loss is: 43.623219188706344\n",
      "When time is : 599, get best_k: 9.315334123611024 best_b: -36.02697107007113, and the loss is: 43.62321809854244\n",
      "When time is : 600, get best_k: 9.315328996137758 best_b: -36.0269384536086, and the loss is: 43.62321700843091\n",
      "When time is : 601, get best_k: 9.315323868787795 best_b: -36.02690583793041, and the loss is: 43.623215918371834\n",
      "When time is : 602, get best_k: 9.31531874156113 best_b: -36.02687322303653, and the loss is: 43.62321482836517\n",
      "When time is : 603, get best_k: 9.31531361445776 best_b: -36.02684060892695, and the loss is: 43.623213738410946\n",
      "When time is : 604, get best_k: 9.315308487477685 best_b: -36.02680799560165, and the loss is: 43.62321264850911\n",
      "When time is : 605, get best_k: 9.315303360620899 best_b: -36.02677538306061, and the loss is: 43.62321155865978\n",
      "When time is : 606, get best_k: 9.315298233887399 best_b: -36.02674277130381, and the loss is: 43.623210468862766\n",
      "When time is : 607, get best_k: 9.315293107277181 best_b: -36.026710160331234, and the loss is: 43.62320937911824\n",
      "When time is : 608, get best_k: 9.315287980790245 best_b: -36.026677550142864, and the loss is: 43.623208289426024\n",
      "When time is : 609, get best_k: 9.315282854426588 best_b: -36.02664494073868, and the loss is: 43.62320719978628\n",
      "When time is : 610, get best_k: 9.315277728186205 best_b: -36.02661233211865, and the loss is: 43.623206110198964\n",
      "When time is : 611, get best_k: 9.315272602069093 best_b: -36.026579724282776, and the loss is: 43.623205020664045\n",
      "When time is : 612, get best_k: 9.31526747607525 best_b: -36.026547117231026, and the loss is: 43.62320393118149\n",
      "When time is : 613, get best_k: 9.315262350204675 best_b: -36.02651451096339, and the loss is: 43.62320284175134\n",
      "When time is : 614, get best_k: 9.315257224457362 best_b: -36.02648190547984, and the loss is: 43.62320175237363\n",
      "When time is : 615, get best_k: 9.315252098833309 best_b: -36.026449300780364, and the loss is: 43.62320066304828\n",
      "When time is : 616, get best_k: 9.315246973332512 best_b: -36.02641669686494, and the loss is: 43.62319957377535\n",
      "When time is : 617, get best_k: 9.315241847954969 best_b: -36.026384093733554, and the loss is: 43.62319848455474\n",
      "When time is : 618, get best_k: 9.315236722700678 best_b: -36.02635149138618, and the loss is: 43.62319739538658\n",
      "When time is : 619, get best_k: 9.315231597569635 best_b: -36.0263188898228, and the loss is: 43.62319630627075\n",
      "When time is : 620, get best_k: 9.315226472561838 best_b: -36.02628628904339, and the loss is: 43.62319521720732\n",
      "When time is : 621, get best_k: 9.315221347677282 best_b: -36.02625368904795, and the loss is: 43.62319412819627\n",
      "When time is : 622, get best_k: 9.315216222915966 best_b: -36.02622108983644, and the loss is: 43.62319303923756\n",
      "When time is : 623, get best_k: 9.315211098277887 best_b: -36.02618849140885, and the loss is: 43.623191950331304\n",
      "When time is : 624, get best_k: 9.31520597376304 best_b: -36.02615589376517, and the loss is: 43.62319086147735\n",
      "When time is : 625, get best_k: 9.315200849371424 best_b: -36.02612329690537, and the loss is: 43.623189772675765\n",
      "When time is : 626, get best_k: 9.315195725103035 best_b: -36.026090700829435, and the loss is: 43.62318868392657\n",
      "When time is : 627, get best_k: 9.31519060095787 best_b: -36.026058105537345, and the loss is: 43.623187595229716\n",
      "When time is : 628, get best_k: 9.315185476935927 best_b: -36.02602551102908, and the loss is: 43.623186506585235\n",
      "When time is : 629, get best_k: 9.315180353037203 best_b: -36.02599291730463, and the loss is: 43.623185417993135\n",
      "When time is : 630, get best_k: 9.315175229261694 best_b: -36.02596032436396, and the loss is: 43.62318432945336\n",
      "When time is : 631, get best_k: 9.315170105609397 best_b: -36.02592773220706, and the loss is: 43.623183240965936\n",
      "When time is : 632, get best_k: 9.31516498208031 best_b: -36.02589514083391, and the loss is: 43.623182152530894\n",
      "When time is : 633, get best_k: 9.315159858674429 best_b: -36.0258625502445, and the loss is: 43.62318106414818\n",
      "When time is : 634, get best_k: 9.315154735391753 best_b: -36.0258299604388, and the loss is: 43.623179975817735\n",
      "When time is : 635, get best_k: 9.315149612232277 best_b: -36.02579737141679, and the loss is: 43.623178887539744\n",
      "When time is : 636, get best_k: 9.315144489196 best_b: -36.02576478317846, and the loss is: 43.623177799314035\n",
      "When time is : 637, get best_k: 9.315139366282917 best_b: -36.02573219572378, and the loss is: 43.62317671114069\n",
      "When time is : 638, get best_k: 9.315134243493025 best_b: -36.025699609052744, and the loss is: 43.62317562301967\n",
      "When time is : 639, get best_k: 9.315129120826324 best_b: -36.025667023165326, and the loss is: 43.62317453495098\n",
      "When time is : 640, get best_k: 9.315123998282807 best_b: -36.02563443806151, and the loss is: 43.62317344693466\n",
      "When time is : 641, get best_k: 9.315118875862474 best_b: -36.02560185374127, and the loss is: 43.62317235897061\n",
      "When time is : 642, get best_k: 9.31511375356532 best_b: -36.0255692702046, and the loss is: 43.623171271058894\n",
      "When time is : 643, get best_k: 9.315108631391345 best_b: -36.02553668745147, and the loss is: 43.62317018319951\n",
      "When time is : 644, get best_k: 9.315103509340542 best_b: -36.025504105481865, and the loss is: 43.62316909539245\n",
      "When time is : 645, get best_k: 9.315098387412911 best_b: -36.02547152429577, and the loss is: 43.62316800763768\n",
      "When time is : 646, get best_k: 9.315093265608448 best_b: -36.02543894389316, and the loss is: 43.623166919935215\n",
      "When time is : 647, get best_k: 9.31508814392715 best_b: -36.02540636427401, and the loss is: 43.62316583228509\n",
      "When time is : 648, get best_k: 9.315083022369015 best_b: -36.02537378543832, and the loss is: 43.6231647446873\n",
      "When time is : 649, get best_k: 9.315077900934039 best_b: -36.025341207386056, and the loss is: 43.623163657141816\n",
      "When time is : 650, get best_k: 9.315072779622218 best_b: -36.0253086301172, and the loss is: 43.62316256964857\n",
      "When time is : 651, get best_k: 9.315067658433552 best_b: -36.02527605363174, and the loss is: 43.623161482207685\n",
      "When time is : 652, get best_k: 9.315062537368036 best_b: -36.025243477929656, and the loss is: 43.62316039481906\n",
      "When time is : 653, get best_k: 9.315057416425667 best_b: -36.02521090301093, and the loss is: 43.623159307482744\n",
      "When time is : 654, get best_k: 9.315052295606442 best_b: -36.02517832887553, and the loss is: 43.62315822019875\n",
      "When time is : 655, get best_k: 9.31504717491036 best_b: -36.02514575552346, and the loss is: 43.623157132967016\n",
      "When time is : 656, get best_k: 9.315042054337415 best_b: -36.025113182954684, and the loss is: 43.62315604578759\n",
      "When time is : 657, get best_k: 9.315036933887606 best_b: -36.02508061116919, and the loss is: 43.62315495866044\n",
      "When time is : 658, get best_k: 9.31503181356093 best_b: -36.02504804016695, and the loss is: 43.6231538715856\n",
      "When time is : 659, get best_k: 9.315026693357384 best_b: -36.02501546994796, and the loss is: 43.62315278456306\n",
      "When time is : 660, get best_k: 9.315021573276963 best_b: -36.02498290051219, and the loss is: 43.623151697592704\n",
      "When time is : 661, get best_k: 9.315016453319668 best_b: -36.02495033185963, and the loss is: 43.62315061067471\n",
      "When time is : 662, get best_k: 9.315011333485492 best_b: -36.024917763990246, and the loss is: 43.62314952380892\n",
      "When time is : 663, get best_k: 9.315006213774435 best_b: -36.02488519690403, and the loss is: 43.62314843699547\n",
      "When time is : 664, get best_k: 9.315001094186492 best_b: -36.02485263060097, and the loss is: 43.62314735023429\n",
      "When time is : 665, get best_k: 9.314995974721661 best_b: -36.02482006508103, and the loss is: 43.62314626352532\n",
      "When time is : 666, get best_k: 9.31499085537994 best_b: -36.0247875003442, and the loss is: 43.62314517686863\n",
      "When time is : 667, get best_k: 9.314985736161324 best_b: -36.02475493639047, and the loss is: 43.62314409026421\n",
      "When time is : 668, get best_k: 9.31498061706581 best_b: -36.02472237321981, and the loss is: 43.62314300371206\n",
      "When time is : 669, get best_k: 9.314975498093398 best_b: -36.0246898108322, and the loss is: 43.62314191721219\n",
      "When time is : 670, get best_k: 9.314970379244082 best_b: -36.02465724922763, and the loss is: 43.62314083076453\n",
      "When time is : 671, get best_k: 9.31496526051786 best_b: -36.02462468840608, and the loss is: 43.62313974436912\n",
      "When time is : 672, get best_k: 9.31496014191473 best_b: -36.02459212836752, and the loss is: 43.623138658025965\n",
      "When time is : 673, get best_k: 9.314955023434688 best_b: -36.02455956911194, and the loss is: 43.62313757173506\n",
      "When time is : 674, get best_k: 9.31494990507773 best_b: -36.024527010639325, and the loss is: 43.62313648549639\n",
      "When time is : 675, get best_k: 9.314944786843856 best_b: -36.02449445294965, and the loss is: 43.62313539930999\n",
      "When time is : 676, get best_k: 9.31493966873306 best_b: -36.02446189604289, and the loss is: 43.62313431317581\n",
      "When time is : 677, get best_k: 9.314934550745342 best_b: -36.02442933991903, and the loss is: 43.62313322709386\n",
      "When time is : 678, get best_k: 9.314929432880696 best_b: -36.024396784578066, and the loss is: 43.623132141064225\n",
      "When time is : 679, get best_k: 9.314924315139121 best_b: -36.02436423001996, and the loss is: 43.62313105508672\n",
      "When time is : 680, get best_k: 9.314919197520613 best_b: -36.02433167624471, and the loss is: 43.62312996916145\n",
      "When time is : 681, get best_k: 9.31491408002517 best_b: -36.02429912325228, and the loss is: 43.62312888328841\n",
      "When time is : 682, get best_k: 9.314908962652789 best_b: -36.02426657104266, and the loss is: 43.62312779746759\n",
      "When time is : 683, get best_k: 9.314903845403466 best_b: -36.02423401961583, and the loss is: 43.62312671169905\n",
      "When time is : 684, get best_k: 9.314898728277198 best_b: -36.024201468971775, and the loss is: 43.62312562598275\n",
      "When time is : 685, get best_k: 9.314893611273984 best_b: -36.02416891911047, and the loss is: 43.62312454031856\n",
      "When time is : 686, get best_k: 9.314888494393818 best_b: -36.024136370031904, and the loss is: 43.62312345470665\n",
      "When time is : 687, get best_k: 9.3148833776367 best_b: -36.02410382173605, and the loss is: 43.623122369146905\n",
      "When time is : 688, get best_k: 9.314878261002626 best_b: -36.02407127422289, and the loss is: 43.623121283639435\n",
      "When time is : 689, get best_k: 9.314873144491592 best_b: -36.02403872749241, and the loss is: 43.62312019818414\n",
      "When time is : 690, get best_k: 9.314868028103596 best_b: -36.024006181544586, and the loss is: 43.62311911278103\n",
      "When time is : 691, get best_k: 9.314862911838636 best_b: -36.0239736363794, and the loss is: 43.623118027430124\n",
      "When time is : 692, get best_k: 9.314857795696708 best_b: -36.02394109199684, and the loss is: 43.62311694213144\n",
      "When time is : 693, get best_k: 9.31485267967781 best_b: -36.02390854839688, and the loss is: 43.623115856884944\n",
      "When time is : 694, get best_k: 9.314847563781935 best_b: -36.0238760055795, and the loss is: 43.623114771690645\n",
      "When time is : 695, get best_k: 9.314842448009085 best_b: -36.023843463544694, and the loss is: 43.62311368654851\n",
      "When time is : 696, get best_k: 9.314837332359254 best_b: -36.02381092229243, and the loss is: 43.6231126014586\n",
      "When time is : 697, get best_k: 9.314832216832441 best_b: -36.02377838182269, and the loss is: 43.62311151642087\n",
      "When time is : 698, get best_k: 9.314827101428643 best_b: -36.023745842135455, and the loss is: 43.62311043143532\n",
      "When time is : 699, get best_k: 9.314821986147855 best_b: -36.023713303230714, and the loss is: 43.623109346501955\n",
      "When time is : 700, get best_k: 9.314816870990075 best_b: -36.023680765108445, and the loss is: 43.623108261620715\n",
      "When time is : 701, get best_k: 9.3148117559553 best_b: -36.023648227768625, and the loss is: 43.62310717679167\n",
      "When time is : 702, get best_k: 9.314806641043528 best_b: -36.02361569121123, and the loss is: 43.62310609201489\n",
      "When time is : 703, get best_k: 9.314801526254756 best_b: -36.023583155436256, and the loss is: 43.62310500729016\n",
      "When time is : 704, get best_k: 9.314796411588981 best_b: -36.02355062044368, and the loss is: 43.62310392261767\n",
      "When time is : 705, get best_k: 9.314791297046199 best_b: -36.02351808623347, and the loss is: 43.62310283799736\n",
      "When time is : 706, get best_k: 9.314786182626408 best_b: -36.023485552805624, and the loss is: 43.62310175342916\n",
      "When time is : 707, get best_k: 9.314781068329603 best_b: -36.02345302016012, and the loss is: 43.623100668913175\n",
      "When time is : 708, get best_k: 9.314775954155785 best_b: -36.023420488296935, and the loss is: 43.62309958444929\n",
      "When time is : 709, get best_k: 9.314770840104947 best_b: -36.02338795721605, and the loss is: 43.62309850003761\n",
      "When time is : 710, get best_k: 9.314765726177088 best_b: -36.02335542691745, and the loss is: 43.62309741567805\n",
      "When time is : 711, get best_k: 9.314760612372204 best_b: -36.02332289740111, and the loss is: 43.62309633137066\n",
      "When time is : 712, get best_k: 9.314755498690294 best_b: -36.02329036866701, and the loss is: 43.62309524711541\n",
      "When time is : 713, get best_k: 9.314750385131354 best_b: -36.02325784071515, and the loss is: 43.623094162912274\n",
      "When time is : 714, get best_k: 9.314745271695381 best_b: -36.02322531354548, and the loss is: 43.62309307876136\n",
      "When time is : 715, get best_k: 9.31474015838237 best_b: -36.02319278715801, and the loss is: 43.62309199466252\n",
      "When time is : 716, get best_k: 9.314735045192322 best_b: -36.023160261552704, and the loss is: 43.6230909106159\n",
      "When time is : 717, get best_k: 9.314729932125232 best_b: -36.02312773672955, and the loss is: 43.623089826621325\n",
      "When time is : 718, get best_k: 9.314724819181096 best_b: -36.023095212688524, and the loss is: 43.6230887426789\n",
      "When time is : 719, get best_k: 9.314719706359913 best_b: -36.023062689429615, and the loss is: 43.623087658788656\n",
      "When time is : 720, get best_k: 9.314714593661678 best_b: -36.0230301669528, and the loss is: 43.6230865749505\n",
      "When time is : 721, get best_k: 9.31470948108639 best_b: -36.02299764525806, and the loss is: 43.62308549116443\n",
      "When time is : 722, get best_k: 9.314704368634047 best_b: -36.022965124345376, and the loss is: 43.623084407430504\n",
      "When time is : 723, get best_k: 9.314699256304642 best_b: -36.02293260421473, and the loss is: 43.62308332374876\n",
      "When time is : 724, get best_k: 9.314694144098175 best_b: -36.0229000848661, and the loss is: 43.62308224011912\n",
      "When time is : 725, get best_k: 9.314689032014641 best_b: -36.022867566299475, and the loss is: 43.62308115654157\n",
      "When time is : 726, get best_k: 9.31468392005404 best_b: -36.02283504851483, and the loss is: 43.62308007301611\n",
      "When time is : 727, get best_k: 9.314678808216367 best_b: -36.02280253151215, and the loss is: 43.6230789895428\n",
      "When time is : 728, get best_k: 9.31467369650162 best_b: -36.02277001529141, and the loss is: 43.62307790612161\n",
      "When time is : 729, get best_k: 9.314668584909795 best_b: -36.022737499852596, and the loss is: 43.62307682275249\n",
      "When time is : 730, get best_k: 9.31466347344089 best_b: -36.02270498519569, and the loss is: 43.62307573943548\n",
      "When time is : 731, get best_k: 9.314658362094901 best_b: -36.02267247132067, and the loss is: 43.623074656170566\n",
      "When time is : 732, get best_k: 9.314653250871826 best_b: -36.022639958227515, and the loss is: 43.62307357295781\n",
      "When time is : 733, get best_k: 9.314648139771663 best_b: -36.022607445916215, and the loss is: 43.62307248979704\n",
      "When time is : 734, get best_k: 9.314643028794407 best_b: -36.022574934386746, and the loss is: 43.62307140668848\n",
      "When time is : 735, get best_k: 9.314637917940056 best_b: -36.02254242363909, and the loss is: 43.62307032363192\n",
      "When time is : 736, get best_k: 9.314632807208607 best_b: -36.022509913673225, and the loss is: 43.62306924062751\n",
      "When time is : 737, get best_k: 9.314627696600057 best_b: -36.02247740448914, and the loss is: 43.62306815767512\n",
      "When time is : 738, get best_k: 9.314622586114403 best_b: -36.0224448960868, and the loss is: 43.62306707477491\n",
      "When time is : 739, get best_k: 9.314617475751641 best_b: -36.02241238846621, and the loss is: 43.62306599192672\n",
      "When time is : 740, get best_k: 9.314612365511769 best_b: -36.02237988162733, and the loss is: 43.6230649091306\n",
      "When time is : 741, get best_k: 9.314607255394785 best_b: -36.02234737557015, and the loss is: 43.62306382638659\n",
      "When time is : 742, get best_k: 9.314602145400684 best_b: -36.02231487029465, and the loss is: 43.623062743694554\n",
      "When time is : 743, get best_k: 9.314597035529465 best_b: -36.02228236580081, and the loss is: 43.62306166105473\n",
      "When time is : 744, get best_k: 9.314591925781125 best_b: -36.022249862088614, and the loss is: 43.62306057846695\n",
      "When time is : 745, get best_k: 9.314586816155659 best_b: -36.02221735915804, and the loss is: 43.62305949593115\n",
      "When time is : 746, get best_k: 9.314581706653065 best_b: -36.02218485700907, and the loss is: 43.62305841344751\n",
      "When time is : 747, get best_k: 9.314576597273343 best_b: -36.022152355641694, and the loss is: 43.62305733101583\n",
      "When time is : 748, get best_k: 9.314571488016485 best_b: -36.022119855055884, and the loss is: 43.62305624863627\n",
      "When time is : 749, get best_k: 9.31456637888249 best_b: -36.02208735525162, and the loss is: 43.62305516630879\n",
      "When time is : 750, get best_k: 9.314561269871357 best_b: -36.02205485622889, and the loss is: 43.62305408403333\n",
      "When time is : 751, get best_k: 9.31455616098308 best_b: -36.022022357987666, and the loss is: 43.62305300180991\n",
      "When time is : 752, get best_k: 9.31455105221766 best_b: -36.02198986052794, and the loss is: 43.62305191963855\n",
      "When time is : 753, get best_k: 9.314545943575089 best_b: -36.02195736384968, and the loss is: 43.62305083751923\n",
      "When time is : 754, get best_k: 9.314540835055368 best_b: -36.021924867952876, and the loss is: 43.623049755451945\n",
      "When time is : 755, get best_k: 9.314535726658493 best_b: -36.02189237283751, and the loss is: 43.62304867343673\n",
      "When time is : 756, get best_k: 9.31453061838446 best_b: -36.02185987850357, and the loss is: 43.6230475914735\n",
      "When time is : 757, get best_k: 9.314525510233267 best_b: -36.021827384951024, and the loss is: 43.623046509562386\n",
      "When time is : 758, get best_k: 9.314520402204911 best_b: -36.021794892179855, and the loss is: 43.62304542770327\n",
      "When time is : 759, get best_k: 9.314515294299389 best_b: -36.02176240019005, and the loss is: 43.623044345896176\n",
      "When time is : 760, get best_k: 9.314510186516697 best_b: -36.021729908981584, and the loss is: 43.62304326414108\n",
      "When time is : 761, get best_k: 9.314505078856834 best_b: -36.02169741855444, and the loss is: 43.623042182438034\n",
      "When time is : 762, get best_k: 9.314499971319798 best_b: -36.0216649289086, and the loss is: 43.623041100787034\n",
      "When time is : 763, get best_k: 9.314494863905582 best_b: -36.02163244004405, and the loss is: 43.623040019188046\n",
      "When time is : 764, get best_k: 9.314489756614185 best_b: -36.021599951960766, and the loss is: 43.62303893764107\n",
      "When time is : 765, get best_k: 9.314484649445605 best_b: -36.02156746465873, and the loss is: 43.623037856146105\n",
      "When time is : 766, get best_k: 9.314479542399837 best_b: -36.02153497813792, and the loss is: 43.623036774703145\n",
      "When time is : 767, get best_k: 9.31447443547688 best_b: -36.02150249239833, and the loss is: 43.6230356933122\n",
      "When time is : 768, get best_k: 9.314469328676731 best_b: -36.02147000743992, and the loss is: 43.62303461197325\n",
      "When time is : 769, get best_k: 9.314464221999385 best_b: -36.02143752326269, and the loss is: 43.62303353068636\n",
      "When time is : 770, get best_k: 9.314459115444842 best_b: -36.021405039866615, and the loss is: 43.62303244945141\n",
      "When time is : 771, get best_k: 9.314454009013097 best_b: -36.021372557251674, and the loss is: 43.6230313682685\n",
      "When time is : 772, get best_k: 9.314448902704148 best_b: -36.02134007541785, and the loss is: 43.62303028713763\n",
      "When time is : 773, get best_k: 9.314443796517992 best_b: -36.02130759436512, and the loss is: 43.62302920605867\n",
      "When time is : 774, get best_k: 9.314438690454624 best_b: -36.02127511409347, and the loss is: 43.623028125031745\n",
      "When time is : 775, get best_k: 9.314433584514044 best_b: -36.021242634602885, and the loss is: 43.6230270440568\n",
      "When time is : 776, get best_k: 9.314428478696247 best_b: -36.02121015589334, and the loss is: 43.62302596313389\n",
      "When time is : 777, get best_k: 9.31442337300123 best_b: -36.02117767796482, and the loss is: 43.62302488226291\n",
      "When time is : 778, get best_k: 9.31441826742899 best_b: -36.0211452008173, and the loss is: 43.623023801443935\n",
      "When time is : 779, get best_k: 9.314413161979527 best_b: -36.02111272445077, and the loss is: 43.62302272067689\n",
      "When time is : 780, get best_k: 9.314408056652834 best_b: -36.0210802488652, and the loss is: 43.623021639961884\n",
      "When time is : 781, get best_k: 9.31440295144891 best_b: -36.021047774060584, and the loss is: 43.62302055929884\n",
      "When time is : 782, get best_k: 9.314397846367752 best_b: -36.02101530003689, and the loss is: 43.62301947868777\n",
      "When time is : 783, get best_k: 9.314392741409359 best_b: -36.02098282679412, and the loss is: 43.62301839812862\n",
      "When time is : 784, get best_k: 9.314387636573725 best_b: -36.02095035433223, and the loss is: 43.62301731762153\n",
      "When time is : 785, get best_k: 9.314382531860849 best_b: -36.02091788265121, and the loss is: 43.62301623716633\n",
      "When time is : 786, get best_k: 9.314377427270726 best_b: -36.02088541175105, and the loss is: 43.62301515676312\n",
      "When time is : 787, get best_k: 9.314372322803354 best_b: -36.02085294163172, and the loss is: 43.62301407641191\n",
      "When time is : 788, get best_k: 9.314367218458731 best_b: -36.02082047229322, and the loss is: 43.62301299611257\n",
      "When time is : 789, get best_k: 9.314362114236854 best_b: -36.020788003735504, and the loss is: 43.623011915865234\n",
      "When time is : 790, get best_k: 9.314357010137718 best_b: -36.02075553595857, and the loss is: 43.623010835669874\n",
      "When time is : 791, get best_k: 9.314351906161322 best_b: -36.0207230689624, and the loss is: 43.62300975552647\n",
      "When time is : 792, get best_k: 9.314346802307663 best_b: -36.02069060274697, and the loss is: 43.623008675434946\n",
      "When time is : 793, get best_k: 9.314341698576737 best_b: -36.02065813731226, and the loss is: 43.62300759539542\n",
      "When time is : 794, get best_k: 9.314336594968541 best_b: -36.020625672658255, and the loss is: 43.62300651540781\n",
      "When time is : 795, get best_k: 9.314331491483074 best_b: -36.02059320878494, and the loss is: 43.623005435472194\n",
      "When time is : 796, get best_k: 9.314326388120332 best_b: -36.02056074569228, and the loss is: 43.6230043555885\n",
      "When time is : 797, get best_k: 9.314321284880311 best_b: -36.02052828338027, and the loss is: 43.62300327575668\n",
      "When time is : 798, get best_k: 9.314316181763008 best_b: -36.0204958218489, and the loss is: 43.6230021959769\n",
      "When time is : 799, get best_k: 9.314311078768421 best_b: -36.02046336109813, and the loss is: 43.62300111624897\n",
      "When time is : 800, get best_k: 9.314305975896547 best_b: -36.02043090112795, and the loss is: 43.62300003657298\n",
      "When time is : 801, get best_k: 9.314300873147383 best_b: -36.02039844193835, and the loss is: 43.62299895694891\n",
      "When time is : 802, get best_k: 9.314295770520927 best_b: -36.020365983529295, and the loss is: 43.62299787737676\n",
      "When time is : 803, get best_k: 9.314290668017174 best_b: -36.020333525900774, and the loss is: 43.62299679785659\n",
      "When time is : 804, get best_k: 9.314285565636121 best_b: -36.02030106905277, and the loss is: 43.62299571838821\n",
      "When time is : 805, get best_k: 9.314280463377766 best_b: -36.02026861298526, and the loss is: 43.622994638971896\n",
      "When time is : 806, get best_k: 9.314275361242109 best_b: -36.020236157698236, and the loss is: 43.62299355960742\n",
      "When time is : 807, get best_k: 9.314270259229142 best_b: -36.02020370319167, and the loss is: 43.62299248029489\n",
      "When time is : 808, get best_k: 9.314265157338864 best_b: -36.02017124946554, and the loss is: 43.62299140103421\n",
      "When time is : 809, get best_k: 9.314260055571273 best_b: -36.02013879651984, and the loss is: 43.62299032182551\n",
      "When time is : 810, get best_k: 9.314254953926365 best_b: -36.02010634435454, and the loss is: 43.62298924266867\n",
      "When time is : 811, get best_k: 9.314249852404139 best_b: -36.02007389296962, and the loss is: 43.62298816356371\n",
      "When time is : 812, get best_k: 9.314244751004589 best_b: -36.02004144236507, and the loss is: 43.622987084510704\n",
      "When time is : 813, get best_k: 9.314239649727714 best_b: -36.020008992540866, and the loss is: 43.622986005509524\n",
      "When time is : 814, get best_k: 9.314234548573511 best_b: -36.019976543496995, and the loss is: 43.62298492656024\n",
      "When time is : 815, get best_k: 9.314229447541976 best_b: -36.01994409523343, and the loss is: 43.6229838476629\n",
      "When time is : 816, get best_k: 9.314224346633107 best_b: -36.01991164775015, and the loss is: 43.62298276881741\n",
      "When time is : 817, get best_k: 9.3142192458469 best_b: -36.01987920104715, and the loss is: 43.62298169002387\n",
      "When time is : 818, get best_k: 9.314214145183353 best_b: -36.0198467551244, and the loss is: 43.62298061128217\n",
      "When time is : 819, get best_k: 9.314209044642462 best_b: -36.01981430998188, and the loss is: 43.622979532592346\n",
      "When time is : 820, get best_k: 9.314203944224225 best_b: -36.019781865619585, and the loss is: 43.622978453954424\n",
      "When time is : 821, get best_k: 9.31419884392864 best_b: -36.019749422037485, and the loss is: 43.62297737536837\n",
      "When time is : 822, get best_k: 9.314193743755704 best_b: -36.01971697923556, and the loss is: 43.62297629683413\n",
      "When time is : 823, get best_k: 9.31418864370541 best_b: -36.0196845372138, and the loss is: 43.62297521835181\n",
      "When time is : 824, get best_k: 9.31418354377776 best_b: -36.01965209597218, and the loss is: 43.62297413992139\n",
      "When time is : 825, get best_k: 9.31417844397275 best_b: -36.019619655510674, and the loss is: 43.62297306154278\n",
      "When time is : 826, get best_k: 9.314173344290376 best_b: -36.019587215829276, and the loss is: 43.622971983216026\n",
      "When time is : 827, get best_k: 9.314168244730634 best_b: -36.01955477692796, and the loss is: 43.62297090494122\n",
      "When time is : 828, get best_k: 9.314163145293524 best_b: -36.01952233880671, and the loss is: 43.622969826718155\n",
      "When time is : 829, get best_k: 9.31415804597904 best_b: -36.019489901465505, and the loss is: 43.62296874854705\n",
      "When time is : 830, get best_k: 9.31415294678718 best_b: -36.01945746490433, and the loss is: 43.62296767042775\n",
      "When time is : 831, get best_k: 9.314147847717942 best_b: -36.01942502912316, and the loss is: 43.622966592360285\n",
      "When time is : 832, get best_k: 9.314142748771323 best_b: -36.01939259412199, and the loss is: 43.622965514344735\n",
      "When time is : 833, get best_k: 9.314137649947318 best_b: -36.019360159900785, and the loss is: 43.622964436381004\n",
      "When time is : 834, get best_k: 9.314132551245926 best_b: -36.01932772645954, and the loss is: 43.62296335846904\n",
      "When time is : 835, get best_k: 9.314127452667144 best_b: -36.01929529379822, and the loss is: 43.622962280608974\n",
      "When time is : 836, get best_k: 9.314122354210967 best_b: -36.01926286191682, and the loss is: 43.62296120280072\n",
      "When time is : 837, get best_k: 9.314117255877395 best_b: -36.01923043081532, and the loss is: 43.622960125044365\n",
      "When time is : 838, get best_k: 9.314112157666424 best_b: -36.019198000493695, and the loss is: 43.62295904733982\n",
      "When time is : 839, get best_k: 9.31410705957805 best_b: -36.01916557095193, and the loss is: 43.622957969687064\n",
      "When time is : 840, get best_k: 9.314101961612272 best_b: -36.01913314219, and the loss is: 43.62295689208617\n",
      "When time is : 841, get best_k: 9.314096863769086 best_b: -36.019100714207894, and the loss is: 43.62295581453711\n",
      "When time is : 842, get best_k: 9.314091766048488 best_b: -36.019068287005595, and the loss is: 43.62295473703981\n",
      "When time is : 843, get best_k: 9.314086668450477 best_b: -36.01903586058308, and the loss is: 43.62295365959442\n",
      "When time is : 844, get best_k: 9.314081570975048 best_b: -36.01900343494033, and the loss is: 43.62295258220084\n",
      "When time is : 845, get best_k: 9.314076473622201 best_b: -36.01897101007733, and the loss is: 43.62295150485905\n",
      "When time is : 846, get best_k: 9.31407137639193 best_b: -36.01893858599406, and the loss is: 43.622950427569045\n",
      "When time is : 847, get best_k: 9.314066279284233 best_b: -36.01890616269049, and the loss is: 43.62294935033087\n",
      "When time is : 848, get best_k: 9.314061182299108 best_b: -36.01887374016662, and the loss is: 43.62294827314454\n",
      "When time is : 849, get best_k: 9.314056085436551 best_b: -36.01884131842242, and the loss is: 43.6229471960099\n",
      "When time is : 850, get best_k: 9.31405098869656 best_b: -36.018808897457866, and the loss is: 43.62294611892723\n",
      "When time is : 851, get best_k: 9.31404589207913 best_b: -36.01877647727295, and the loss is: 43.62294504189629\n",
      "When time is : 852, get best_k: 9.314040795584262 best_b: -36.01874405786765, and the loss is: 43.6229439649171\n",
      "When time is : 853, get best_k: 9.31403569921195 best_b: -36.01871163924194, and the loss is: 43.62294288798979\n",
      "When time is : 854, get best_k: 9.31403060296219 best_b: -36.018679221395814, and the loss is: 43.62294181111424\n",
      "When time is : 855, get best_k: 9.31402550683498 best_b: -36.01864680432925, and the loss is: 43.62294073429043\n",
      "When time is : 856, get best_k: 9.314020410830318 best_b: -36.018614388042224, and the loss is: 43.62293965751844\n",
      "When time is : 857, get best_k: 9.314015314948202 best_b: -36.01858197253472, and the loss is: 43.62293858079823\n",
      "When time is : 858, get best_k: 9.314010219188628 best_b: -36.018549557806715, and the loss is: 43.622937504129844\n",
      "When time is : 859, get best_k: 9.314005123551592 best_b: -36.0185171438582, and the loss is: 43.62293642751319\n",
      "When time is : 860, get best_k: 9.314000028037093 best_b: -36.018484730689146, and the loss is: 43.62293535094838\n",
      "When time is : 861, get best_k: 9.313994932645127 best_b: -36.01845231829954, and the loss is: 43.622934274435266\n",
      "When time is : 862, get best_k: 9.31398983737569 best_b: -36.01841990668936, and the loss is: 43.62293319797396\n",
      "When time is : 863, get best_k: 9.313984742228781 best_b: -36.01838749585859, and the loss is: 43.62293212156445\n",
      "When time is : 864, get best_k: 9.313979647204397 best_b: -36.018355085807215, and the loss is: 43.62293104520669\n",
      "When time is : 865, get best_k: 9.313974552302533 best_b: -36.01832267653521, and the loss is: 43.622929968900685\n",
      "When time is : 866, get best_k: 9.313969457523186 best_b: -36.01829026804256, and the loss is: 43.62292889264649\n",
      "When time is : 867, get best_k: 9.313964362866356 best_b: -36.01825786032924, and the loss is: 43.622927816444\n",
      "When time is : 868, get best_k: 9.313959268332038 best_b: -36.01822545339524, and the loss is: 43.62292674029331\n",
      "When time is : 869, get best_k: 9.313954173920228 best_b: -36.01819304724054, and the loss is: 43.62292566419435\n",
      "When time is : 870, get best_k: 9.313949079630927 best_b: -36.01816064186511, and the loss is: 43.62292458814714\n",
      "When time is : 871, get best_k: 9.313943985464128 best_b: -36.01812823726894, and the loss is: 43.62292351215166\n",
      "When time is : 872, get best_k: 9.31393889141983 best_b: -36.018095833452016, and the loss is: 43.62292243620801\n",
      "When time is : 873, get best_k: 9.31393379749803 best_b: -36.01806343041431, and the loss is: 43.622921360316006\n",
      "When time is : 874, get best_k: 9.313928703698725 best_b: -36.018031028155804, and the loss is: 43.622920284475825\n",
      "When time is : 875, get best_k: 9.313923610021911 best_b: -36.01799862667649, and the loss is: 43.62291920868732\n",
      "When time is : 876, get best_k: 9.313918516467586 best_b: -36.01796622597634, and the loss is: 43.62291813295063\n",
      "When time is : 877, get best_k: 9.313913423035746 best_b: -36.017933826055334, and the loss is: 43.622917057265596\n",
      "When time is : 878, get best_k: 9.31390832972639 best_b: -36.017901426913454, and the loss is: 43.62291598163232\n",
      "When time is : 879, get best_k: 9.313903236539513 best_b: -36.017869028550685, and the loss is: 43.62291490605084\n",
      "When time is : 880, get best_k: 9.313898143475113 best_b: -36.01783663096701, and the loss is: 43.622913830521014\n",
      "When time is : 881, get best_k: 9.313893050533187 best_b: -36.017804234162405, and the loss is: 43.622912755042954\n",
      "When time is : 882, get best_k: 9.313887957713732 best_b: -36.01777183813685, and the loss is: 43.62291167961658\n",
      "When time is : 883, get best_k: 9.313882865016746 best_b: -36.01773944289034, and the loss is: 43.62291060424198\n",
      "When time is : 884, get best_k: 9.313877772442225 best_b: -36.017707048422835, and the loss is: 43.622909528919074\n",
      "When time is : 885, get best_k: 9.313872679990167 best_b: -36.01767465473433, and the loss is: 43.62290845364784\n",
      "When time is : 886, get best_k: 9.313867587660567 best_b: -36.017642261824804, and the loss is: 43.62290737842835\n",
      "When time is : 887, get best_k: 9.313862495453424 best_b: -36.01760986969424, and the loss is: 43.6229063032606\n",
      "When time is : 888, get best_k: 9.313857403368734 best_b: -36.017577478342616, and the loss is: 43.62290522814453\n",
      "When time is : 889, get best_k: 9.313852311406496 best_b: -36.01754508776991, and the loss is: 43.6229041530802\n",
      "When time is : 890, get best_k: 9.313847219566705 best_b: -36.01751269797611, and the loss is: 43.62290307806754\n",
      "When time is : 891, get best_k: 9.313842127849359 best_b: -36.0174803089612, and the loss is: 43.622902003106624\n",
      "When time is : 892, get best_k: 9.313837036254453 best_b: -36.01744792072515, and the loss is: 43.622900928197346\n",
      "When time is : 893, get best_k: 9.313831944781986 best_b: -36.01741553326794, and the loss is: 43.62289985333981\n",
      "When time is : 894, get best_k: 9.313826853431955 best_b: -36.01738314658957, and the loss is: 43.6228987785339\n",
      "When time is : 895, get best_k: 9.313821762204357 best_b: -36.01735076069001, and the loss is: 43.622897703779756\n",
      "When time is : 896, get best_k: 9.31381667109919 best_b: -36.01731837556924, and the loss is: 43.62289662907726\n",
      "When time is : 897, get best_k: 9.313811580116448 best_b: -36.01728599122724, and the loss is: 43.622895554426485\n",
      "When time is : 898, get best_k: 9.313806489256132 best_b: -36.017253607663996, and the loss is: 43.622894479827416\n",
      "When time is : 899, get best_k: 9.313801398518237 best_b: -36.017221224879485, and the loss is: 43.62289340527995\n",
      "When time is : 900, get best_k: 9.31379630790276 best_b: -36.01718884287369, and the loss is: 43.62289233078424\n",
      "When time is : 901, get best_k: 9.313791217409698 best_b: -36.01715646164659, and the loss is: 43.62289125634014\n",
      "When time is : 902, get best_k: 9.313786127039046 best_b: -36.017124081198176, and the loss is: 43.62289018194776\n",
      "When time is : 903, get best_k: 9.313781036790806 best_b: -36.017091701528415, and the loss is: 43.62288910760704\n",
      "When time is : 904, get best_k: 9.31377594666497 best_b: -36.017059322637294, and the loss is: 43.622888033317984\n",
      "When time is : 905, get best_k: 9.313770856661538 best_b: -36.0170269445248, and the loss is: 43.62288695908057\n",
      "When time is : 906, get best_k: 9.313765766780508 best_b: -36.01699456719091, and the loss is: 43.62288588489483\n",
      "When time is : 907, get best_k: 9.313760677021875 best_b: -36.01696219063561, and the loss is: 43.6228848107608\n",
      "When time is : 908, get best_k: 9.313755587385637 best_b: -36.01692981485887, and the loss is: 43.6228837366784\n",
      "When time is : 909, get best_k: 9.31375049787179 best_b: -36.01689743986068, and the loss is: 43.62288266264766\n",
      "When time is : 910, get best_k: 9.313745408480333 best_b: -36.016865065641014, and the loss is: 43.62288158866858\n",
      "When time is : 911, get best_k: 9.313740319211261 best_b: -36.01683269219986, and the loss is: 43.62288051474111\n",
      "When time is : 912, get best_k: 9.313735230064571 best_b: -36.016800319537204, and the loss is: 43.62287944086532\n",
      "When time is : 913, get best_k: 9.313730141040262 best_b: -36.016767947653015, and the loss is: 43.622878367041174\n",
      "When time is : 914, get best_k: 9.313725052138329 best_b: -36.01673557654728, and the loss is: 43.622877293268694\n",
      "When time is : 915, get best_k: 9.31371996335877 best_b: -36.01670320621999, and the loss is: 43.62287621954785\n",
      "When time is : 916, get best_k: 9.313714874701581 best_b: -36.0166708366711, and the loss is: 43.622875145878645\n",
      "When time is : 917, get best_k: 9.313709786166761 best_b: -36.01663846790062, and the loss is: 43.622874072261055\n",
      "When time is : 918, get best_k: 9.313704697754307 best_b: -36.016606099908515, and the loss is: 43.622872998695144\n",
      "When time is : 919, get best_k: 9.313699609464214 best_b: -36.016573732694766, and the loss is: 43.622871925180824\n",
      "When time is : 920, get best_k: 9.313694521296481 best_b: -36.01654136625936, and the loss is: 43.62287085171809\n",
      "When time is : 921, get best_k: 9.313689433251104 best_b: -36.016509000602284, and the loss is: 43.62286977830701\n",
      "When time is : 922, get best_k: 9.313684345328081 best_b: -36.01647663572351, and the loss is: 43.62286870494763\n",
      "When time is : 923, get best_k: 9.313679257527408 best_b: -36.016444271623016, and the loss is: 43.6228676316398\n",
      "When time is : 924, get best_k: 9.313674169849083 best_b: -36.01641190830079, and the loss is: 43.62286655838361\n",
      "When time is : 925, get best_k: 9.313669082293101 best_b: -36.01637954575681, and the loss is: 43.622865485179084\n",
      "When time is : 926, get best_k: 9.313663994859462 best_b: -36.016347183991066, and the loss is: 43.622864412026075\n",
      "When time is : 927, get best_k: 9.313658907548161 best_b: -36.01631482300353, and the loss is: 43.622863338924724\n",
      "When time is : 928, get best_k: 9.313653820359196 best_b: -36.01628246279419, and the loss is: 43.62286226587498\n",
      "When time is : 929, get best_k: 9.313648733292563 best_b: -36.016250103363014, and the loss is: 43.62286119287685\n",
      "When time is : 930, get best_k: 9.313643646348261 best_b: -36.01621774471, and the loss is: 43.622860119930316\n",
      "When time is : 931, get best_k: 9.313638559526286 best_b: -36.01618538683512, and the loss is: 43.622859047035384\n",
      "When time is : 932, get best_k: 9.313633472826634 best_b: -36.016153029738355, and the loss is: 43.62285797419214\n",
      "When time is : 933, get best_k: 9.313628386249304 best_b: -36.01612067341969, and the loss is: 43.62285690140035\n",
      "When time is : 934, get best_k: 9.313623299794292 best_b: -36.01608831787911, and the loss is: 43.6228558286602\n",
      "When time is : 935, get best_k: 9.313618213461595 best_b: -36.016055963116585, and the loss is: 43.62285475597167\n",
      "When time is : 936, get best_k: 9.31361312725121 best_b: -36.016023609132105, and the loss is: 43.62285368333474\n",
      "When time is : 937, get best_k: 9.313608041163135 best_b: -36.01599125592565, and the loss is: 43.622852610749376\n",
      "When time is : 938, get best_k: 9.313602955197366 best_b: -36.01595890349719, and the loss is: 43.62285153821557\n",
      "When time is : 939, get best_k: 9.3135978693539 best_b: -36.015926551846725, and the loss is: 43.62285046573338\n",
      "When time is : 940, get best_k: 9.313592783632735 best_b: -36.01589420097422, and the loss is: 43.62284939330275\n",
      "When time is : 941, get best_k: 9.313587698033867 best_b: -36.01586185087967, and the loss is: 43.622848320923744\n",
      "When time is : 942, get best_k: 9.313582612557294 best_b: -36.015829501563054, and the loss is: 43.622847248596315\n",
      "When time is : 943, get best_k: 9.313577527203012 best_b: -36.015797153024344, and the loss is: 43.622846176320365\n",
      "When time is : 944, get best_k: 9.313572441971019 best_b: -36.01576480526353, and the loss is: 43.62284510409608\n",
      "When time is : 945, get best_k: 9.313567356861311 best_b: -36.01573245828059, and the loss is: 43.62284403192331\n",
      "When time is : 946, get best_k: 9.313562271873886 best_b: -36.0157001120755, and the loss is: 43.622842959802114\n",
      "When time is : 947, get best_k: 9.31355718700874 best_b: -36.01566776664825, and the loss is: 43.622841887732484\n",
      "When time is : 948, get best_k: 9.313552102265872 best_b: -36.015635421998816, and the loss is: 43.62284081571445\n",
      "When time is : 949, get best_k: 9.313547017645277 best_b: -36.015603078127185, and the loss is: 43.62283974374789\n",
      "When time is : 950, get best_k: 9.313541933146954 best_b: -36.01557073503333, and the loss is: 43.622838671832945\n",
      "When time is : 951, get best_k: 9.313536848770898 best_b: -36.01553839271724, and the loss is: 43.62283759996955\n",
      "When time is : 952, get best_k: 9.313531764517109 best_b: -36.01550605117889, and the loss is: 43.62283652815766\n",
      "When time is : 953, get best_k: 9.31352668038558 best_b: -36.01547371041826, and the loss is: 43.62283545639737\n",
      "When time is : 954, get best_k: 9.313521596376312 best_b: -36.01544137043535, and the loss is: 43.622834384688616\n",
      "When time is : 955, get best_k: 9.313516512489299 best_b: -36.015409031230114, and the loss is: 43.622833313031414\n",
      "When time is : 956, get best_k: 9.31351142872454 best_b: -36.01537669280255, and the loss is: 43.62283224142577\n",
      "When time is : 957, get best_k: 9.313506345082033 best_b: -36.015344355152635, and the loss is: 43.62283116987161\n",
      "When time is : 958, get best_k: 9.313501261561772 best_b: -36.015312018280355, and the loss is: 43.62283009836902\n",
      "When time is : 959, get best_k: 9.313496178163755 best_b: -36.015279682185685, and the loss is: 43.62282902691793\n",
      "When time is : 960, get best_k: 9.31349109488798 best_b: -36.015247346868605, and the loss is: 43.622827955518375\n",
      "When time is : 961, get best_k: 9.313486011734444 best_b: -36.0152150123291, and the loss is: 43.62282688417036\n",
      "When time is : 962, get best_k: 9.313480928703143 best_b: -36.01518267856715, and the loss is: 43.622825812873856\n",
      "When time is : 963, get best_k: 9.313475845794075 best_b: -36.01515034558274, and the loss is: 43.62282474162889\n",
      "When time is : 964, get best_k: 9.313470763007238 best_b: -36.01511801337585, and the loss is: 43.62282367043548\n",
      "When time is : 965, get best_k: 9.313465680342627 best_b: -36.01508568194645, and the loss is: 43.62282259929352\n",
      "When time is : 966, get best_k: 9.31346059780024 best_b: -36.01505335129454, and the loss is: 43.62282152820314\n",
      "When time is : 967, get best_k: 9.313455515380076 best_b: -36.01502102142009, and the loss is: 43.622820457164245\n",
      "When time is : 968, get best_k: 9.313450433082128 best_b: -36.01498869232309, and the loss is: 43.62281938617685\n",
      "When time is : 969, get best_k: 9.313445350906395 best_b: -36.01495636400351, and the loss is: 43.62281831524095\n",
      "When time is : 970, get best_k: 9.313440268852876 best_b: -36.01492403646134, and the loss is: 43.62281724435657\n",
      "When time is : 971, get best_k: 9.313435186921565 best_b: -36.014891709696556, and the loss is: 43.622816173523695\n",
      "When time is : 972, get best_k: 9.31343010511246 best_b: -36.01485938370914, and the loss is: 43.62281510274235\n",
      "When time is : 973, get best_k: 9.313425023425559 best_b: -36.01482705849907, and the loss is: 43.622814032012485\n",
      "When time is : 974, get best_k: 9.31341994186086 best_b: -36.01479473406634, and the loss is: 43.62281296133408\n",
      "When time is : 975, get best_k: 9.313414860418357 best_b: -36.014762410410924, and the loss is: 43.6228118907072\n",
      "When time is : 976, get best_k: 9.313409779098048 best_b: -36.0147300875328, and the loss is: 43.622810820131825\n",
      "When time is : 977, get best_k: 9.313404697899932 best_b: -36.01469776543195, and the loss is: 43.62280974960792\n",
      "When time is : 978, get best_k: 9.313399616824004 best_b: -36.01466544410835, and the loss is: 43.62280867913546\n",
      "When time is : 979, get best_k: 9.31339453587026 best_b: -36.014633123562, and the loss is: 43.6228076087146\n",
      "When time is : 980, get best_k: 9.3133894550387 best_b: -36.01460080379286, and the loss is: 43.622806538345124\n",
      "When time is : 981, get best_k: 9.313384374329322 best_b: -36.014568484800925, and the loss is: 43.62280546802713\n",
      "When time is : 982, get best_k: 9.31337929374212 best_b: -36.01453616658617, and the loss is: 43.62280439776063\n",
      "When time is : 983, get best_k: 9.313374213277092 best_b: -36.014503849148575, and the loss is: 43.622803327545604\n",
      "When time is : 984, get best_k: 9.313369132934234 best_b: -36.01447153248813, and the loss is: 43.622802257382034\n",
      "When time is : 985, get best_k: 9.313364052713546 best_b: -36.01443921660481, and the loss is: 43.62280118726994\n",
      "When time is : 986, get best_k: 9.31335897261502 best_b: -36.0144069014986, and the loss is: 43.62280011720933\n",
      "When time is : 987, get best_k: 9.31335389263866 best_b: -36.01437458716948, and the loss is: 43.6227990472002\n",
      "When time is : 988, get best_k: 9.313348812784456 best_b: -36.01434227361742, and the loss is: 43.62279797724242\n",
      "When time is : 989, get best_k: 9.31334373305241 best_b: -36.01430996084242, and the loss is: 43.62279690733622\n",
      "When time is : 990, get best_k: 9.313338653442518 best_b: -36.01427764884445, and the loss is: 43.6227958374814\n",
      "When time is : 991, get best_k: 9.313333573954775 best_b: -36.01424533762349, and the loss is: 43.62279476767813\n",
      "When time is : 992, get best_k: 9.31332849458918 best_b: -36.01421302717953, and the loss is: 43.62279369792619\n",
      "When time is : 993, get best_k: 9.313323415345732 best_b: -36.014180717512545, and the loss is: 43.62279262822579\n",
      "When time is : 994, get best_k: 9.313318336224423 best_b: -36.01414840862252, and the loss is: 43.62279155857681\n",
      "When time is : 995, get best_k: 9.313313257225253 best_b: -36.01411610050943, and the loss is: 43.62279048897928\n",
      "When time is : 996, get best_k: 9.31330817834822 best_b: -36.01408379317327, and the loss is: 43.62278941943313\n",
      "When time is : 997, get best_k: 9.31330309959332 best_b: -36.01405148661401, and the loss is: 43.62278834993847\n",
      "When time is : 998, get best_k: 9.313298020960548 best_b: -36.014019180831625, and the loss is: 43.622787280495274\n",
      "When time is : 999, get best_k: 9.313292942449905 best_b: -36.013986875826106, and the loss is: 43.622786211103445\n",
      "When time is : 1000, get best_k: 9.313287864061387 best_b: -36.01395457159744, and the loss is: 43.62278514176309\n",
      "When time is : 1001, get best_k: 9.31328278579499 best_b: -36.01392226814559, and the loss is: 43.62278407247418\n",
      "When time is : 1002, get best_k: 9.313277707650709 best_b: -36.013889965470554, and the loss is: 43.62278300323665\n",
      "When time is : 1003, get best_k: 9.313272629628544 best_b: -36.01385766357231, and the loss is: 43.62278193405062\n",
      "When time is : 1004, get best_k: 9.313267551728492 best_b: -36.01382536245084, and the loss is: 43.62278086491591\n",
      "When time is : 1005, get best_k: 9.313262473950548 best_b: -36.01379306210612, and the loss is: 43.62277979583267\n",
      "When time is : 1006, get best_k: 9.313257396294711 best_b: -36.013760762538126, and the loss is: 43.62277872680087\n",
      "When time is : 1007, get best_k: 9.313252318760979 best_b: -36.01372846374685, and the loss is: 43.62277765782045\n",
      "When time is : 1008, get best_k: 9.313247241349346 best_b: -36.01369616573228, and the loss is: 43.622776588891405\n",
      "When time is : 1009, get best_k: 9.313242164059812 best_b: -36.013663868494376, and the loss is: 43.62277552001384\n",
      "When time is : 1010, get best_k: 9.313237086892372 best_b: -36.013631572033134, and the loss is: 43.62277445118764\n",
      "When time is : 1011, get best_k: 9.313232009847024 best_b: -36.013599276348536, and the loss is: 43.62277338241286\n",
      "When time is : 1012, get best_k: 9.313226932923765 best_b: -36.013566981440555, and the loss is: 43.62277231368948\n",
      "When time is : 1013, get best_k: 9.313221856122592 best_b: -36.01353468730918, and the loss is: 43.62277124501751\n",
      "When time is : 1014, get best_k: 9.3132167794435 best_b: -36.01350239395439, and the loss is: 43.622770176396905\n",
      "When time is : 1015, get best_k: 9.31321170288649 best_b: -36.013470101376164, and the loss is: 43.6227691078277\n",
      "When time is : 1016, get best_k: 9.313206626451557 best_b: -36.013437809574484, and the loss is: 43.62276803930995\n",
      "When time is : 1017, get best_k: 9.313201550138697 best_b: -36.013405518549334, and the loss is: 43.622766970843486\n",
      "When time is : 1018, get best_k: 9.313196473947908 best_b: -36.01337322830069, and the loss is: 43.622765902428505\n",
      "When time is : 1019, get best_k: 9.313191397879189 best_b: -36.01334093882854, and the loss is: 43.62276483406485\n",
      "When time is : 1020, get best_k: 9.313186321932536 best_b: -36.01330865013286, and the loss is: 43.62276376575257\n",
      "When time is : 1021, get best_k: 9.313181246107945 best_b: -36.01327636221364, and the loss is: 43.62276269749173\n",
      "When time is : 1022, get best_k: 9.313176170405413 best_b: -36.01324407507085, and the loss is: 43.62276162928225\n",
      "When time is : 1023, get best_k: 9.313171094824938 best_b: -36.01321178870448, and the loss is: 43.62276056112406\n",
      "When time is : 1024, get best_k: 9.313166019366516 best_b: -36.01317950311451, and the loss is: 43.622759493017305\n",
      "When time is : 1025, get best_k: 9.313160944030145 best_b: -36.01314721830091, and the loss is: 43.62275842496195\n",
      "When time is : 1026, get best_k: 9.313155868815821 best_b: -36.01311493426367, and the loss is: 43.62275735695794\n",
      "When time is : 1027, get best_k: 9.313150793723542 best_b: -36.013082651002776, and the loss is: 43.622756289005295\n",
      "When time is : 1028, get best_k: 9.313145718753306 best_b: -36.0130503685182, and the loss is: 43.62275522110401\n",
      "When time is : 1029, get best_k: 9.313140643905108 best_b: -36.013018086809936, and the loss is: 43.622754153254064\n",
      "When time is : 1030, get best_k: 9.313135569178947 best_b: -36.01298580587795, and the loss is: 43.6227530854555\n",
      "When time is : 1031, get best_k: 9.313130494574818 best_b: -36.01295352572224, and the loss is: 43.62275201770825\n",
      "When time is : 1032, get best_k: 9.31312542009272 best_b: -36.01292124634277, and the loss is: 43.62275095001236\n",
      "When time is : 1033, get best_k: 9.313120345732647 best_b: -36.012888967739535, and the loss is: 43.62274988236784\n",
      "When time is : 1034, get best_k: 9.3131152714946 best_b: -36.01285668991251, and the loss is: 43.62274881477471\n",
      "When time is : 1035, get best_k: 9.313110197378576 best_b: -36.012824412861676, and the loss is: 43.62274774723288\n",
      "When time is : 1036, get best_k: 9.313105123384569 best_b: -36.01279213658702, and the loss is: 43.622746679742384\n",
      "When time is : 1037, get best_k: 9.313100049512576 best_b: -36.01275986108851, and the loss is: 43.62274561230322\n",
      "When time is : 1038, get best_k: 9.313094975762596 best_b: -36.01272758636614, and the loss is: 43.62274454491542\n",
      "When time is : 1039, get best_k: 9.313089902134626 best_b: -36.012695312419886, and the loss is: 43.62274347757894\n",
      "When time is : 1040, get best_k: 9.313084828628662 best_b: -36.01266303924973, and the loss is: 43.6227424102938\n",
      "When time is : 1041, get best_k: 9.313079755244702 best_b: -36.01263076685566, and the loss is: 43.62274134306004\n",
      "When time is : 1042, get best_k: 9.313074681982744 best_b: -36.01259849523765, and the loss is: 43.62274027587751\n",
      "When time is : 1043, get best_k: 9.313069608842785 best_b: -36.01256622439568, and the loss is: 43.62273920874636\n",
      "When time is : 1044, get best_k: 9.313064535824818 best_b: -36.01253395432973, and the loss is: 43.622738141666524\n",
      "When time is : 1045, get best_k: 9.313059462928845 best_b: -36.012501685039794, and the loss is: 43.62273707463801\n",
      "When time is : 1046, get best_k: 9.31305439015486 best_b: -36.01246941652584, and the loss is: 43.622736007660805\n",
      "When time is : 1047, get best_k: 9.313049317502863 best_b: -36.01243714878785, and the loss is: 43.62273494073491\n",
      "When time is : 1048, get best_k: 9.313044244972847 best_b: -36.012404881825816, and the loss is: 43.62273387386033\n",
      "When time is : 1049, get best_k: 9.313039172564812 best_b: -36.01237261563971, and the loss is: 43.622732807037075\n",
      "When time is : 1050, get best_k: 9.313034100278754 best_b: -36.01234035022952, and the loss is: 43.62273174026515\n",
      "When time is : 1051, get best_k: 9.313029028114672 best_b: -36.01230808559522, and the loss is: 43.62273067354447\n",
      "When time is : 1052, get best_k: 9.31302395607256 best_b: -36.0122758217368, and the loss is: 43.622729606875126\n",
      "When time is : 1053, get best_k: 9.313018884152417 best_b: -36.012243558654234, and the loss is: 43.62272854025712\n",
      "When time is : 1054, get best_k: 9.313013812354239 best_b: -36.01221129634751, and the loss is: 43.62272747369035\n",
      "When time is : 1055, get best_k: 9.313008740678024 best_b: -36.0121790348166, and the loss is: 43.622726407174916\n",
      "When time is : 1056, get best_k: 9.313003669123768 best_b: -36.01214677406149, and the loss is: 43.62272534071074\n",
      "When time is : 1057, get best_k: 9.31299859769147 best_b: -36.012114514082164, and the loss is: 43.62272427429785\n",
      "When time is : 1058, get best_k: 9.312993526381126 best_b: -36.0120822548786, and the loss is: 43.62272320793623\n",
      "When time is : 1059, get best_k: 9.312988455192732 best_b: -36.01204999645078, and the loss is: 43.62272214162601\n",
      "When time is : 1060, get best_k: 9.312983384126287 best_b: -36.01201773879868, and the loss is: 43.62272107536695\n",
      "When time is : 1061, get best_k: 9.312978313181787 best_b: -36.011985481922295, and the loss is: 43.622720009159245\n",
      "When time is : 1062, get best_k: 9.312973242359229 best_b: -36.0119532258216, and the loss is: 43.62271894300278\n",
      "When time is : 1063, get best_k: 9.31296817165861 best_b: -36.01192097049657, and the loss is: 43.622717876897596\n",
      "When time is : 1064, get best_k: 9.312963101079928 best_b: -36.011888715947194, and the loss is: 43.6227168108437\n",
      "When time is : 1065, get best_k: 9.312958030623179 best_b: -36.01185646217345, and the loss is: 43.62271574484107\n",
      "When time is : 1066, get best_k: 9.31295296028836 best_b: -36.011824209175316, and the loss is: 43.62271467888972\n",
      "When time is : 1067, get best_k: 9.312947890075469 best_b: -36.01179195695278, and the loss is: 43.622713612989585\n",
      "When time is : 1068, get best_k: 9.312942819984501 best_b: -36.01175970550582, and the loss is: 43.62271254714074\n",
      "When time is : 1069, get best_k: 9.312937750015456 best_b: -36.011727454834414, and the loss is: 43.62271148134312\n",
      "When time is : 1070, get best_k: 9.312932680168329 best_b: -36.011695204938555, and the loss is: 43.62271041559684\n",
      "When time is : 1071, get best_k: 9.312927610443118 best_b: -36.01166295581821, and the loss is: 43.62270934990179\n",
      "When time is : 1072, get best_k: 9.31292254083982 best_b: -36.01163070747337, and the loss is: 43.62270828425797\n",
      "When time is : 1073, get best_k: 9.312917471358432 best_b: -36.011598459904015, and the loss is: 43.62270721866541\n",
      "When time is : 1074, get best_k: 9.31291240199895 best_b: -36.01156621311012, and the loss is: 43.62270615312412\n",
      "When time is : 1075, get best_k: 9.312907332761373 best_b: -36.01153396709167, and the loss is: 43.62270508763407\n",
      "When time is : 1076, get best_k: 9.312902263645697 best_b: -36.01150172184865, and the loss is: 43.622704022195215\n",
      "When time is : 1077, get best_k: 9.312897194651919 best_b: -36.01146947738104, and the loss is: 43.62270295680768\n",
      "When time is : 1078, get best_k: 9.312892125780037 best_b: -36.011437233688824, and the loss is: 43.6227018914713\n",
      "When time is : 1079, get best_k: 9.312887057030046 best_b: -36.01140499077197, and the loss is: 43.6227008261862\n",
      "When time is : 1080, get best_k: 9.312881988401946 best_b: -36.01137274863048, and the loss is: 43.62269976095234\n",
      "When time is : 1081, get best_k: 9.312876919895732 best_b: -36.011340507264315, and the loss is: 43.62269869576967\n",
      "When time is : 1082, get best_k: 9.312871851511401 best_b: -36.01130826667347, and the loss is: 43.62269763063831\n",
      "When time is : 1083, get best_k: 9.312866783248952 best_b: -36.011276026857914, and the loss is: 43.622696565558115\n",
      "When time is : 1084, get best_k: 9.31286171510838 best_b: -36.01124378781764, and the loss is: 43.622695500529126\n",
      "When time is : 1085, get best_k: 9.312856647089681 best_b: -36.01121154955263, and the loss is: 43.622694435551416\n",
      "When time is : 1086, get best_k: 9.312851579192856 best_b: -36.01117931206286, and the loss is: 43.62269337062486\n",
      "When time is : 1087, get best_k: 9.312846511417899 best_b: -36.011147075348305, and the loss is: 43.62269230574961\n",
      "When time is : 1088, get best_k: 9.312841443764807 best_b: -36.01111483940896, and the loss is: 43.62269124092549\n",
      "When time is : 1089, get best_k: 9.312836376233578 best_b: -36.0110826042448, and the loss is: 43.62269017615261\n",
      "When time is : 1090, get best_k: 9.31283130882421 best_b: -36.0110503698558, and the loss is: 43.62268911143092\n",
      "When time is : 1091, get best_k: 9.3128262415367 best_b: -36.01101813624196, and the loss is: 43.62268804676047\n",
      "When time is : 1092, get best_k: 9.312821174371042 best_b: -36.01098590340324, and the loss is: 43.62268698214121\n",
      "When time is : 1093, get best_k: 9.312816107327237 best_b: -36.01095367133963, and the loss is: 43.62268591757315\n",
      "When time is : 1094, get best_k: 9.312811040405279 best_b: -36.01092144005111, and the loss is: 43.62268485305625\n",
      "When time is : 1095, get best_k: 9.312805973605167 best_b: -36.01088920953767, and the loss is: 43.622683788590656\n",
      "When time is : 1096, get best_k: 9.312800906926897 best_b: -36.010856979799286, and the loss is: 43.6226827241762\n",
      "When time is : 1097, get best_k: 9.312795840370468 best_b: -36.01082475083593, and the loss is: 43.62268165981289\n",
      "When time is : 1098, get best_k: 9.312790773935875 best_b: -36.01079252264759, and the loss is: 43.6226805955008\n",
      "When time is : 1099, get best_k: 9.312785707623116 best_b: -36.010760295234256, and the loss is: 43.62267953123993\n",
      "When time is : 1100, get best_k: 9.312780641432187 best_b: -36.010728068595895, and the loss is: 43.62267846703019\n",
      "When time is : 1101, get best_k: 9.312775575363085 best_b: -36.0106958427325, and the loss is: 43.62267740287169\n",
      "When time is : 1102, get best_k: 9.31277050941581 best_b: -36.01066361764405, and the loss is: 43.62267633876432\n",
      "When time is : 1103, get best_k: 9.312765443590354 best_b: -36.01063139333052, and the loss is: 43.62267527470812\n",
      "When time is : 1104, get best_k: 9.31276037788672 best_b: -36.010599169791895, and the loss is: 43.62267421070315\n",
      "When time is : 1105, get best_k: 9.312755312304901 best_b: -36.01056694702816, and the loss is: 43.6226731467493\n",
      "When time is : 1106, get best_k: 9.312750246844896 best_b: -36.01053472503929, and the loss is: 43.6226720828466\n",
      "When time is : 1107, get best_k: 9.3127451815067 best_b: -36.01050250382527, and the loss is: 43.622671018995135\n",
      "When time is : 1108, get best_k: 9.312740116290312 best_b: -36.010470283386084, and the loss is: 43.62266995519482\n",
      "When time is : 1109, get best_k: 9.312735051195729 best_b: -36.01043806372171, and the loss is: 43.62266889144564\n",
      "When time is : 1110, get best_k: 9.312729986222946 best_b: -36.01040584483212, and the loss is: 43.62266782774761\n",
      "When time is : 1111, get best_k: 9.312724921371963 best_b: -36.01037362671731, and the loss is: 43.62266676410082\n",
      "When time is : 1112, get best_k: 9.312719856642774 best_b: -36.01034140937726, and the loss is: 43.622665700505095\n",
      "When time is : 1113, get best_k: 9.31271479203538 best_b: -36.010309192811945, and the loss is: 43.62266463696057\n",
      "When time is : 1114, get best_k: 9.312709727549773 best_b: -36.01027697702135, and the loss is: 43.6226635734672\n",
      "When time is : 1115, get best_k: 9.312704663185954 best_b: -36.010244762005456, and the loss is: 43.6226625100249\n",
      "When time is : 1116, get best_k: 9.312699598943919 best_b: -36.01021254776424, and the loss is: 43.622661446633806\n",
      "When time is : 1117, get best_k: 9.312694534823665 best_b: -36.010180334297694, and the loss is: 43.622660383293855\n",
      "When time is : 1118, get best_k: 9.31268947082519 best_b: -36.01014812160579, and the loss is: 43.622659320005056\n",
      "When time is : 1119, get best_k: 9.312684406948488 best_b: -36.01011590968851, and the loss is: 43.62265825676741\n",
      "When time is : 1120, get best_k: 9.31267934319356 best_b: -36.010083698545834, and the loss is: 43.62265719358086\n",
      "When time is : 1121, get best_k: 9.312674279560401 best_b: -36.01005148817775, and the loss is: 43.622656130445414\n",
      "When time is : 1122, get best_k: 9.312669216049008 best_b: -36.01001927858424, and the loss is: 43.62265506736116\n",
      "When time is : 1123, get best_k: 9.312664152659378 best_b: -36.00998706976527, and the loss is: 43.62265400432801\n",
      "When time is : 1124, get best_k: 9.31265908939151 best_b: -36.00995486172084, and the loss is: 43.62265294134596\n",
      "When time is : 1125, get best_k: 9.312654026245397 best_b: -36.009922654450925, and the loss is: 43.62265187841508\n",
      "When time is : 1126, get best_k: 9.31264896322104 best_b: -36.009890447955506, and the loss is: 43.62265081553529\n",
      "When time is : 1127, get best_k: 9.312643900318434 best_b: -36.009858242234564, and the loss is: 43.622649752706586\n",
      "When time is : 1128, get best_k: 9.312638837537579 best_b: -36.00982603728808, and the loss is: 43.62264868992906\n",
      "When time is : 1129, get best_k: 9.312633774878467 best_b: -36.009793833116035, and the loss is: 43.62264762720264\n",
      "When time is : 1130, get best_k: 9.3126287123411 best_b: -36.00976162971841, and the loss is: 43.622646564527365\n",
      "When time is : 1131, get best_k: 9.312623649925472 best_b: -36.00972942709519, and the loss is: 43.6226455019031\n",
      "When time is : 1132, get best_k: 9.312618587631581 best_b: -36.00969722524635, and the loss is: 43.622644439329974\n",
      "When time is : 1133, get best_k: 9.312613525459424 best_b: -36.00966502417187, and the loss is: 43.62264337680799\n",
      "When time is : 1134, get best_k: 9.312608463409 best_b: -36.00963282387175, and the loss is: 43.62264231433703\n",
      "When time is : 1135, get best_k: 9.312603401480303 best_b: -36.00960062434595, and the loss is: 43.62264125191721\n",
      "When time is : 1136, get best_k: 9.31259833967333 best_b: -36.00956842559446, and the loss is: 43.62264018954853\n",
      "When time is : 1137, get best_k: 9.312593277988082 best_b: -36.00953622761726, and the loss is: 43.62263912723095\n",
      "When time is : 1138, get best_k: 9.312588216424553 best_b: -36.009504030414334, and the loss is: 43.6226380649644\n",
      "When time is : 1139, get best_k: 9.31258315498274 best_b: -36.009471833985664, and the loss is: 43.62263700274893\n",
      "When time is : 1140, get best_k: 9.31257809366264 best_b: -36.00943963833122, and the loss is: 43.62263594058455\n",
      "When time is : 1141, get best_k: 9.312573032464252 best_b: -36.009407443451, and the loss is: 43.62263487847135\n",
      "When time is : 1142, get best_k: 9.31256797138757 best_b: -36.00937524934498, and the loss is: 43.62263381640912\n",
      "When time is : 1143, get best_k: 9.312562910432595 best_b: -36.00934305601313, and the loss is: 43.62263275439805\n",
      "When time is : 1144, get best_k: 9.31255784959932 best_b: -36.00931086345545, and the loss is: 43.622631692438034\n",
      "When time is : 1145, get best_k: 9.312552788887745 best_b: -36.0092786716719, and the loss is: 43.62263063052903\n",
      "When time is : 1146, get best_k: 9.312547728297865 best_b: -36.00924648066248, and the loss is: 43.622629568671165\n",
      "When time is : 1147, get best_k: 9.312542667829678 best_b: -36.00921429042717, and the loss is: 43.62262850686431\n",
      "When time is : 1148, get best_k: 9.312537607483183 best_b: -36.00918210096594, and the loss is: 43.622627445108556\n",
      "When time is : 1149, get best_k: 9.312532547258375 best_b: -36.00914991227877, and the loss is: 43.62262638340386\n",
      "When time is : 1150, get best_k: 9.31252748715525 best_b: -36.00911772436566, and the loss is: 43.62262532175022\n",
      "When time is : 1151, get best_k: 9.312522427173807 best_b: -36.009085537226575, and the loss is: 43.62262426014768\n",
      "When time is : 1152, get best_k: 9.312517367314042 best_b: -36.0090533508615, and the loss is: 43.62262319859615\n",
      "When time is : 1153, get best_k: 9.312512307575954 best_b: -36.00902116527042, and the loss is: 43.62262213709565\n",
      "When time is : 1154, get best_k: 9.312507247959537 best_b: -36.00898898045331, and the loss is: 43.62262107564629\n",
      "When time is : 1155, get best_k: 9.31250218846479 best_b: -36.00895679641016, and the loss is: 43.622620014247886\n",
      "When time is : 1156, get best_k: 9.312497129091712 best_b: -36.00892461314095, and the loss is: 43.62261895290064\n",
      "When time is : 1157, get best_k: 9.312492069840296 best_b: -36.00889243064565, and the loss is: 43.622617891604314\n",
      "When time is : 1158, get best_k: 9.31248701071054 best_b: -36.00886024892426, and the loss is: 43.62261683035914\n",
      "When time is : 1159, get best_k: 9.312481951702445 best_b: -36.008828067976744, and the loss is: 43.62261576916494\n",
      "When time is : 1160, get best_k: 9.312476892816003 best_b: -36.008795887803096, and the loss is: 43.622614708021814\n",
      "When time is : 1161, get best_k: 9.312471834051214 best_b: -36.008763708403286, and the loss is: 43.62261364692966\n",
      "When time is : 1162, get best_k: 9.312466775408074 best_b: -36.00873152977731, and the loss is: 43.622612585888575\n",
      "When time is : 1163, get best_k: 9.312461716886581 best_b: -36.00869935192513, and the loss is: 43.622611524898524\n",
      "When time is : 1164, get best_k: 9.312456658486731 best_b: -36.00866717484674, and the loss is: 43.62261046395948\n",
      "When time is : 1165, get best_k: 9.31245160020852 best_b: -36.00863499854213, and the loss is: 43.62260940307153\n",
      "When time is : 1166, get best_k: 9.312446542051948 best_b: -36.00860282301126, and the loss is: 43.6226083422345\n",
      "When time is : 1167, get best_k: 9.312441484017011 best_b: -36.00857064825412, and the loss is: 43.62260728144855\n",
      "When time is : 1168, get best_k: 9.312436426103705 best_b: -36.0085384742707, and the loss is: 43.62260622071365\n",
      "When time is : 1169, get best_k: 9.312431368312028 best_b: -36.008506301060976, and the loss is: 43.62260516002967\n",
      "When time is : 1170, get best_k: 9.312426310641976 best_b: -36.008474128624925, and the loss is: 43.62260409939682\n",
      "When time is : 1171, get best_k: 9.312421253093548 best_b: -36.008441956962535, and the loss is: 43.622603038814844\n",
      "When time is : 1172, get best_k: 9.31241619566674 best_b: -36.008409786073784, and the loss is: 43.62260197828401\n",
      "When time is : 1173, get best_k: 9.312411138361549 best_b: -36.00837761595865, and the loss is: 43.6226009178041\n",
      "When time is : 1174, get best_k: 9.312406081177972 best_b: -36.00834544661712, and the loss is: 43.62259985737518\n",
      "When time is : 1175, get best_k: 9.312401024116006 best_b: -36.00831327804917, and the loss is: 43.6225987969973\n",
      "When time is : 1176, get best_k: 9.312395967175648 best_b: -36.00828111025479, and the loss is: 43.62259773667041\n",
      "When time is : 1177, get best_k: 9.312390910356896 best_b: -36.00824894323396, and the loss is: 43.62259667639451\n",
      "When time is : 1178, get best_k: 9.312385853659746 best_b: -36.00821677698665, and the loss is: 43.622595616169626\n",
      "When time is : 1179, get best_k: 9.312380797084197 best_b: -36.00818461151285, and the loss is: 43.62259455599567\n",
      "When time is : 1180, get best_k: 9.312375740630243 best_b: -36.008152446812545, and the loss is: 43.62259349587274\n",
      "When time is : 1181, get best_k: 9.312370684297884 best_b: -36.008120282885706, and the loss is: 43.622592435800854\n",
      "When time is : 1182, get best_k: 9.312365628087115 best_b: -36.00808811973232, and the loss is: 43.622591375779926\n",
      "When time is : 1183, get best_k: 9.312360571997933 best_b: -36.008055957352376, and the loss is: 43.6225903158099\n",
      "When time is : 1184, get best_k: 9.312355516030337 best_b: -36.00802379574584, and the loss is: 43.62258925589089\n",
      "When time is : 1185, get best_k: 9.312350460184323 best_b: -36.007991634912706, and the loss is: 43.6225881960229\n",
      "When time is : 1186, get best_k: 9.312345404459888 best_b: -36.00795947485295, and the loss is: 43.62258713620584\n",
      "When time is : 1187, get best_k: 9.31234034885703 best_b: -36.007927315566555, and the loss is: 43.622586076439774\n",
      "When time is : 1188, get best_k: 9.312335293375744 best_b: -36.007895157053504, and the loss is: 43.62258501672466\n",
      "When time is : 1189, get best_k: 9.31233023801603 best_b: -36.00786299931377, and the loss is: 43.62258395706049\n",
      "When time is : 1190, get best_k: 9.312325182777881 best_b: -36.007830842347346, and the loss is: 43.6225828974473\n",
      "When time is : 1191, get best_k: 9.312320127661298 best_b: -36.0077986861542, and the loss is: 43.622581837885114\n",
      "When time is : 1192, get best_k: 9.312315072666276 best_b: -36.00776653073433, and the loss is: 43.622580778373845\n",
      "When time is : 1193, get best_k: 9.312310017792813 best_b: -36.007734376087704, and the loss is: 43.62257971891352\n",
      "When time is : 1194, get best_k: 9.312304963040905 best_b: -36.00770222221431, and the loss is: 43.622578659504214\n",
      "When time is : 1195, get best_k: 9.31229990841055 best_b: -36.00767006911413, and the loss is: 43.622577600145775\n",
      "When time is : 1196, get best_k: 9.312294853901745 best_b: -36.00763791678714, and the loss is: 43.62257654083831\n",
      "When time is : 1197, get best_k: 9.312289799514486 best_b: -36.00760576523332, and the loss is: 43.62257548158181\n",
      "When time is : 1198, get best_k: 9.312284745248773 best_b: -36.00757361445266, and the loss is: 43.62257442237625\n",
      "When time is : 1199, get best_k: 9.3122796911046 best_b: -36.00754146444514, and the loss is: 43.62257336322161\n",
      "When time is : 1200, get best_k: 9.312274637081964 best_b: -36.00750931521073, and the loss is: 43.62257230411795\n",
      "When time is : 1201, get best_k: 9.312269583180864 best_b: -36.00747716674943, and the loss is: 43.62257124506521\n",
      "When time is : 1202, get best_k: 9.312264529401297 best_b: -36.00744501906121, and the loss is: 43.6225701860634\n",
      "When time is : 1203, get best_k: 9.312259475743259 best_b: -36.00741287214605, and the loss is: 43.62256912711249\n",
      "When time is : 1204, get best_k: 9.312254422206747 best_b: -36.00738072600393, and the loss is: 43.62256806821251\n",
      "When time is : 1205, get best_k: 9.31224936879176 best_b: -36.00734858063484, and the loss is: 43.62256700936353\n",
      "When time is : 1206, get best_k: 9.312244315498292 best_b: -36.00731643603876, and the loss is: 43.622565950565445\n",
      "When time is : 1207, get best_k: 9.312239262326342 best_b: -36.00728429221566, and the loss is: 43.62256489181825\n",
      "When time is : 1208, get best_k: 9.312234209275907 best_b: -36.00725214916553, and the loss is: 43.62256383312201\n",
      "When time is : 1209, get best_k: 9.312229156346984 best_b: -36.00722000688835, and the loss is: 43.62256277447665\n",
      "When time is : 1210, get best_k: 9.312224103539569 best_b: -36.00718786538411, and the loss is: 43.62256171588216\n",
      "When time is : 1211, get best_k: 9.31221905085366 best_b: -36.00715572465278, and the loss is: 43.62256065733873\n",
      "When time is : 1212, get best_k: 9.312213998289254 best_b: -36.00712358469435, and the loss is: 43.6225595988461\n",
      "When time is : 1213, get best_k: 9.312208945846349 best_b: -36.00709144550879, and the loss is: 43.62255854040438\n",
      "When time is : 1214, get best_k: 9.312203893524941 best_b: -36.00705930709609, and the loss is: 43.6225574820136\n",
      "When time is : 1215, get best_k: 9.312198841325028 best_b: -36.00702716945624, and the loss is: 43.622556423673714\n",
      "When time is : 1216, get best_k: 9.312193789246606 best_b: -36.0069950325892, and the loss is: 43.622555365384706\n",
      "When time is : 1217, get best_k: 9.312188737289674 best_b: -36.00696289649497, and the loss is: 43.62255430714663\n",
      "When time is : 1218, get best_k: 9.312183685454226 best_b: -36.00693076117352, and the loss is: 43.62255324895941\n",
      "When time is : 1219, get best_k: 9.31217863374026 best_b: -36.00689862662484, and the loss is: 43.62255219082309\n",
      "When time is : 1220, get best_k: 9.312173582147775 best_b: -36.0068664928489, and the loss is: 43.622551132737655\n",
      "When time is : 1221, get best_k: 9.312168530676766 best_b: -36.00683435984569, and the loss is: 43.622550074703135\n",
      "When time is : 1222, get best_k: 9.312163479327232 best_b: -36.00680222761519, and the loss is: 43.62254901671951\n",
      "When time is : 1223, get best_k: 9.312158428099169 best_b: -36.00677009615738, and the loss is: 43.62254795878671\n",
      "When time is : 1224, get best_k: 9.312153376992573 best_b: -36.00673796547225, and the loss is: 43.62254690090481\n",
      "When time is : 1225, get best_k: 9.312148326007442 best_b: -36.006705835559764, and the loss is: 43.62254584307382\n",
      "When time is : 1226, get best_k: 9.312143275143773 best_b: -36.00667370641992, and the loss is: 43.6225447852937\n",
      "When time is : 1227, get best_k: 9.312138224401563 best_b: -36.00664157805269, and the loss is: 43.6225437275644\n",
      "When time is : 1228, get best_k: 9.31213317378081 best_b: -36.00660945045805, and the loss is: 43.62254266988603\n",
      "When time is : 1229, get best_k: 9.312128123281509 best_b: -36.006577323635995, and the loss is: 43.62254161225854\n",
      "When time is : 1230, get best_k: 9.31212307290366 best_b: -36.006545197586505, and the loss is: 43.622540554681876\n",
      "When time is : 1231, get best_k: 9.312118022647258 best_b: -36.00651307230955, and the loss is: 43.62253949715606\n",
      "When time is : 1232, get best_k: 9.3121129725123 best_b: -36.00648094780512, and the loss is: 43.62253843968109\n",
      "When time is : 1233, get best_k: 9.312107922498786 best_b: -36.0064488240732, and the loss is: 43.622537382257065\n",
      "When time is : 1234, get best_k: 9.31210287260671 best_b: -36.00641670111377, and the loss is: 43.62253632488386\n",
      "When time is : 1235, get best_k: 9.31209782283607 best_b: -36.006384578926806, and the loss is: 43.62253526756148\n",
      "When time is : 1236, get best_k: 9.312092773186862 best_b: -36.00635245751229, and the loss is: 43.622534210289935\n",
      "When time is : 1237, get best_k: 9.312087723659085 best_b: -36.00632033687021, and the loss is: 43.62253315306927\n",
      "When time is : 1238, get best_k: 9.312082674252734 best_b: -36.00628821700054, and the loss is: 43.62253209589948\n",
      "When time is : 1239, get best_k: 9.312077624967808 best_b: -36.00625609790326, and the loss is: 43.62253103878052\n",
      "When time is : 1240, get best_k: 9.312072575804303 best_b: -36.00622397957836, and the loss is: 43.62252998171236\n",
      "When time is : 1241, get best_k: 9.312067526762217 best_b: -36.00619186202581, and the loss is: 43.62252892469504\n",
      "When time is : 1242, get best_k: 9.312062477841545 best_b: -36.0061597452456, and the loss is: 43.62252786772862\n",
      "When time is : 1243, get best_k: 9.312057429042287 best_b: -36.00612762923771, and the loss is: 43.622526810812985\n",
      "When time is : 1244, get best_k: 9.312052380364438 best_b: -36.00609551400212, and the loss is: 43.62252575394822\n",
      "When time is : 1245, get best_k: 9.312047331807996 best_b: -36.00606339953881, and the loss is: 43.62252469713422\n",
      "When time is : 1246, get best_k: 9.312042283372957 best_b: -36.00603128584777, and the loss is: 43.6225236403711\n",
      "When time is : 1247, get best_k: 9.31203723505932 best_b: -36.00599917292897, and the loss is: 43.62252258365874\n",
      "When time is : 1248, get best_k: 9.31203218686708 best_b: -36.0059670607824, and the loss is: 43.62252152699727\n",
      "When time is : 1249, get best_k: 9.312027138796235 best_b: -36.00593494940804, and the loss is: 43.62252047038655\n",
      "When time is : 1250, get best_k: 9.312022090846783 best_b: -36.00590283880586, and the loss is: 43.622519413826694\n",
      "When time is : 1251, get best_k: 9.31201704301872 best_b: -36.00587072897586, and the loss is: 43.62251835731767\n",
      "When time is : 1252, get best_k: 9.312011995312043 best_b: -36.00583861991801, and the loss is: 43.62251730085946\n",
      "When time is : 1253, get best_k: 9.312006947726749 best_b: -36.005806511632294, and the loss is: 43.62251624445196\n",
      "When time is : 1254, get best_k: 9.312001900262835 best_b: -36.00577440411869, and the loss is: 43.62251518809537\n",
      "When time is : 1255, get best_k: 9.3119968529203 best_b: -36.00574229737718, and the loss is: 43.62251413178957\n",
      "When time is : 1256, get best_k: 9.311991805699138 best_b: -36.00571019140776, and the loss is: 43.62251307553456\n",
      "When time is : 1257, get best_k: 9.31198675859935 best_b: -36.00567808621039, and the loss is: 43.622512019330365\n",
      "When time is : 1258, get best_k: 9.311981711620929 best_b: -36.00564598178506, and the loss is: 43.62251096317688\n",
      "When time is : 1259, get best_k: 9.311976664763874 best_b: -36.005613878131754, and the loss is: 43.62250990707431\n",
      "When time is : 1260, get best_k: 9.311971618028181 best_b: -36.005581775250455, and the loss is: 43.622508851022445\n",
      "When time is : 1261, get best_k: 9.31196657141385 best_b: -36.00554967314114, and the loss is: 43.622507795021434\n",
      "When time is : 1262, get best_k: 9.311961524920875 best_b: -36.00551757180379, and the loss is: 43.62250673907118\n",
      "When time is : 1263, get best_k: 9.311956478549254 best_b: -36.005485471238394, and the loss is: 43.62250568317169\n",
      "When time is : 1264, get best_k: 9.311951432298985 best_b: -36.00545337144492, and the loss is: 43.62250462732301\n",
      "When time is : 1265, get best_k: 9.311946386170064 best_b: -36.00542127242336, and the loss is: 43.6225035715251\n",
      "When time is : 1266, get best_k: 9.311941340162488 best_b: -36.00538917417369, and the loss is: 43.62250251577797\n",
      "When time is : 1267, get best_k: 9.311936294276254 best_b: -36.0053570766959, and the loss is: 43.6225014600816\n",
      "When time is : 1268, get best_k: 9.31193124851136 best_b: -36.005324979989965, and the loss is: 43.62250040443605\n",
      "When time is : 1269, get best_k: 9.311926202867804 best_b: -36.00529288405586, and the loss is: 43.622499348841174\n",
      "When time is : 1270, get best_k: 9.31192115734558 best_b: -36.00526078889358, and the loss is: 43.62249829329715\n",
      "When time is : 1271, get best_k: 9.311916111944688 best_b: -36.005228694503096, and the loss is: 43.62249723780389\n",
      "When time is : 1272, get best_k: 9.311911066665123 best_b: -36.005196600884396, and the loss is: 43.622496182361374\n",
      "When time is : 1273, get best_k: 9.311906021506884 best_b: -36.00516450803746, and the loss is: 43.62249512696962\n",
      "When time is : 1274, get best_k: 9.311900976469966 best_b: -36.005132415962265, and the loss is: 43.62249407162861\n",
      "When time is : 1275, get best_k: 9.311895931554368 best_b: -36.0051003246588, and the loss is: 43.62249301633837\n",
      "When time is : 1276, get best_k: 9.311890886760086 best_b: -36.00506823412704, and the loss is: 43.62249196109892\n",
      "When time is : 1277, get best_k: 9.311885842087117 best_b: -36.00503614436696, and the loss is: 43.62249090591021\n",
      "When time is : 1278, get best_k: 9.311880797535458 best_b: -36.005004055378556, and the loss is: 43.622489850772155\n",
      "When time is : 1279, get best_k: 9.311875753105108 best_b: -36.0049719671618, and the loss is: 43.62248879568491\n",
      "When time is : 1280, get best_k: 9.31187070879606 best_b: -36.00493987971668, and the loss is: 43.62248774064843\n",
      "When time is : 1281, get best_k: 9.311865664608316 best_b: -36.004907793043174, and the loss is: 43.62248668566268\n",
      "When time is : 1282, get best_k: 9.31186062054187 best_b: -36.00487570714126, and the loss is: 43.62248563072764\n",
      "When time is : 1283, get best_k: 9.31185557659672 best_b: -36.004843622010924, and the loss is: 43.622484575843345\n",
      "When time is : 1284, get best_k: 9.311850532772864 best_b: -36.004811537652145, and the loss is: 43.62248352100978\n",
      "When time is : 1285, get best_k: 9.311845489070297 best_b: -36.00477945406491, and the loss is: 43.622482466227005\n",
      "When time is : 1286, get best_k: 9.311840445489016 best_b: -36.004747371249195, and the loss is: 43.62248141149484\n",
      "When time is : 1287, get best_k: 9.31183540202902 best_b: -36.00471528920498, and the loss is: 43.62248035681349\n",
      "When time is : 1288, get best_k: 9.311830358690305 best_b: -36.00468320793225, and the loss is: 43.622479302182896\n",
      "When time is : 1289, get best_k: 9.311825315472868 best_b: -36.00465112743099, and the loss is: 43.62247824760289\n",
      "When time is : 1290, get best_k: 9.311820272376707 best_b: -36.004619047701176, and the loss is: 43.62247719307376\n",
      "When time is : 1291, get best_k: 9.311815229401818 best_b: -36.004586968742785, and the loss is: 43.62247613859523\n",
      "When time is : 1292, get best_k: 9.311810186548199 best_b: -36.00455489055581, and the loss is: 43.62247508416747\n",
      "When time is : 1293, get best_k: 9.311805143815846 best_b: -36.00452281314022, and the loss is: 43.62247402979041\n",
      "When time is : 1294, get best_k: 9.311800101204756 best_b: -36.00449073649601, and the loss is: 43.62247297546404\n",
      "When time is : 1295, get best_k: 9.311795058714928 best_b: -36.00445866062315, and the loss is: 43.62247192118834\n",
      "When time is : 1296, get best_k: 9.311790016346357 best_b: -36.00442658552163, and the loss is: 43.622470866963454\n",
      "When time is : 1297, get best_k: 9.311784974099043 best_b: -36.00439451119142, and the loss is: 43.62246981278922\n",
      "When time is : 1298, get best_k: 9.31177993197298 best_b: -36.004362437632516, and the loss is: 43.62246875866569\n",
      "When time is : 1299, get best_k: 9.311774889968166 best_b: -36.00433036484489, and the loss is: 43.62246770459284\n",
      "When time is : 1300, get best_k: 9.311769848084598 best_b: -36.00429829282852, and the loss is: 43.62246665057072\n",
      "When time is : 1301, get best_k: 9.311764806322273 best_b: -36.0042662215834, and the loss is: 43.62246559659923\n",
      "When time is : 1302, get best_k: 9.31175976468119 best_b: -36.0042341511095, and the loss is: 43.62246454267848\n",
      "When time is : 1303, get best_k: 9.311754723161343 best_b: -36.00420208140681, and the loss is: 43.62246348880838\n",
      "When time is : 1304, get best_k: 9.31174968176273 best_b: -36.004170012475306, and the loss is: 43.62246243498897\n",
      "When time is : 1305, get best_k: 9.311744640485351 best_b: -36.00413794431497, and the loss is: 43.622461381220305\n",
      "When time is : 1306, get best_k: 9.311739599329199 best_b: -36.004105876925784, and the loss is: 43.62246032750225\n",
      "When time is : 1307, get best_k: 9.311734558294273 best_b: -36.00407381030773, and the loss is: 43.622459273834885\n",
      "When time is : 1308, get best_k: 9.31172951738057 best_b: -36.00404174446079, and the loss is: 43.62245822021818\n",
      "When time is : 1309, get best_k: 9.311724476588088 best_b: -36.00400967938495, and the loss is: 43.62245716665219\n",
      "When time is : 1310, get best_k: 9.311719435916823 best_b: -36.00397761508018, and the loss is: 43.62245611313686\n",
      "When time is : 1311, get best_k: 9.31171439536677 best_b: -36.00394555154647, and the loss is: 43.62245505967215\n",
      "When time is : 1312, get best_k: 9.31170935493793 best_b: -36.0039134887838, and the loss is: 43.62245400625814\n",
      "When time is : 1313, get best_k: 9.311704314630298 best_b: -36.00388142679215, and the loss is: 43.6224529528948\n",
      "When time is : 1314, get best_k: 9.311699274443871 best_b: -36.0038493655715, and the loss is: 43.62245189958212\n",
      "When time is : 1315, get best_k: 9.311694234378647 best_b: -36.00381730512183, and the loss is: 43.622450846320106\n",
      "When time is : 1316, get best_k: 9.311689194434623 best_b: -36.003785245443126, and the loss is: 43.622449793108764\n",
      "When time is : 1317, get best_k: 9.311684154611795 best_b: -36.00375318653537, and the loss is: 43.622448739948034\n",
      "When time is : 1318, get best_k: 9.311679114910161 best_b: -36.00372112839854, and the loss is: 43.62244768683795\n",
      "When time is : 1319, get best_k: 9.311674075329718 best_b: -36.00368907103262, and the loss is: 43.622446633778516\n",
      "When time is : 1320, get best_k: 9.311669035870462 best_b: -36.00365701443759, and the loss is: 43.62244558076976\n",
      "When time is : 1321, get best_k: 9.311663996532392 best_b: -36.003624958613436, and the loss is: 43.622444527811645\n",
      "When time is : 1322, get best_k: 9.311658957315505 best_b: -36.00359290356013, and the loss is: 43.622443474904074\n",
      "When time is : 1323, get best_k: 9.311653918219795 best_b: -36.00356084927767, and the loss is: 43.62244242204727\n",
      "When time is : 1324, get best_k: 9.311648879245263 best_b: -36.003528795766016, and the loss is: 43.62244136924106\n",
      "When time is : 1325, get best_k: 9.311643840391904 best_b: -36.00349674302517, and the loss is: 43.62244031648549\n",
      "When time is : 1326, get best_k: 9.311638801659715 best_b: -36.00346469105509, and the loss is: 43.62243926378055\n",
      "When time is : 1327, get best_k: 9.311633763048693 best_b: -36.00343263985578, and the loss is: 43.622438211126216\n",
      "When time is : 1328, get best_k: 9.311628724558837 best_b: -36.00340058942721, and the loss is: 43.6224371585225\n",
      "When time is : 1329, get best_k: 9.311623686190142 best_b: -36.00336853976936, and the loss is: 43.62243610596942\n",
      "When time is : 1330, get best_k: 9.311618647942606 best_b: -36.00333649088222, and the loss is: 43.622435053467036\n",
      "When time is : 1331, get best_k: 9.311613609816225 best_b: -36.00330444276577, and the loss is: 43.622434001015165\n",
      "When time is : 1332, get best_k: 9.311608571810998 best_b: -36.003272395419984, and the loss is: 43.62243294861397\n",
      "When time is : 1333, get best_k: 9.31160353392692 best_b: -36.00324034884485, and the loss is: 43.62243189626332\n",
      "When time is : 1334, get best_k: 9.31159849616399 best_b: -36.003208303040346, and the loss is: 43.6224308439634\n",
      "When time is : 1335, get best_k: 9.311593458522204 best_b: -36.003176258006455, and the loss is: 43.622429791714\n",
      "When time is : 1336, get best_k: 9.31158842100156 best_b: -36.003144213743155, and the loss is: 43.62242873951519\n",
      "When time is : 1337, get best_k: 9.311583383602054 best_b: -36.00311217025043, and the loss is: 43.62242768736708\n",
      "When time is : 1338, get best_k: 9.311578346323683 best_b: -36.00308012752827, and the loss is: 43.62242663526947\n",
      "When time is : 1339, get best_k: 9.311573309166445 best_b: -36.003048085576644, and the loss is: 43.62242558322246\n",
      "When time is : 1340, get best_k: 9.311568272130335 best_b: -36.00301604439554, and the loss is: 43.6224245312261\n",
      "When time is : 1341, get best_k: 9.311563235215354 best_b: -36.002984003984935, and the loss is: 43.62242347928037\n",
      "When time is : 1342, get best_k: 9.311558198421496 best_b: -36.00295196434482, and the loss is: 43.622422427385175\n",
      "When time is : 1343, get best_k: 9.311553161748758 best_b: -36.00291992547516, and the loss is: 43.62242137554054\n",
      "When time is : 1344, get best_k: 9.31154812519714 best_b: -36.00288788737595, and the loss is: 43.62242032374657\n",
      "When time is : 1345, get best_k: 9.311543088766635 best_b: -36.00285585004716, and the loss is: 43.622419272003135\n",
      "When time is : 1346, get best_k: 9.311538052457244 best_b: -36.00282381348879, and the loss is: 43.62241822031033\n",
      "When time is : 1347, get best_k: 9.311533016268962 best_b: -36.00279177770081, and the loss is: 43.622417168668015\n",
      "When time is : 1348, get best_k: 9.311527980201786 best_b: -36.002759742683196, and the loss is: 43.62241611707636\n",
      "When time is : 1349, get best_k: 9.311522944255714 best_b: -36.002727708435934, and the loss is: 43.622415065535264\n",
      "When time is : 1350, get best_k: 9.31151790843074 best_b: -36.00269567495901, and the loss is: 43.622414014044736\n",
      "When time is : 1351, get best_k: 9.311512872726865 best_b: -36.0026636422524, and the loss is: 43.62241296260475\n",
      "When time is : 1352, get best_k: 9.311507837144086 best_b: -36.002631610316094, and the loss is: 43.62241191121534\n",
      "When time is : 1353, get best_k: 9.311502801682398 best_b: -36.002599579150065, and the loss is: 43.62241085987651\n",
      "When time is : 1354, get best_k: 9.311497766341798 best_b: -36.00256754875429, and the loss is: 43.622409808588266\n",
      "When time is : 1355, get best_k: 9.311492731122286 best_b: -36.00253551912876, and the loss is: 43.62240875735052\n",
      "When time is : 1356, get best_k: 9.311487696023855 best_b: -36.00250349027346, and the loss is: 43.622407706163415\n",
      "When time is : 1357, get best_k: 9.311482661046504 best_b: -36.00247146218836, and the loss is: 43.62240665502682\n",
      "When time is : 1358, get best_k: 9.311477626190232 best_b: -36.002439434873445, and the loss is: 43.62240560394083\n",
      "When time is : 1359, get best_k: 9.311472591455034 best_b: -36.0024074083287, and the loss is: 43.62240455290534\n",
      "When time is : 1360, get best_k: 9.311467556840908 best_b: -36.002375382554106, and the loss is: 43.622403501920346\n",
      "When time is : 1361, get best_k: 9.311462522347849 best_b: -36.00234335754964, and the loss is: 43.62240245098598\n",
      "When time is : 1362, get best_k: 9.311457487975856 best_b: -36.00231133331529, and the loss is: 43.6224014001021\n",
      "When time is : 1363, get best_k: 9.311452453724925 best_b: -36.00227930985103, and the loss is: 43.622400349268744\n",
      "When time is : 1364, get best_k: 9.311447419595055 best_b: -36.00224728715685, and the loss is: 43.62239929848604\n",
      "When time is : 1365, get best_k: 9.311442385586242 best_b: -36.00221526523272, and the loss is: 43.6223982477538\n",
      "When time is : 1366, get best_k: 9.311437351698482 best_b: -36.00218324407864, and the loss is: 43.622397197072104\n",
      "When time is : 1367, get best_k: 9.311432317931773 best_b: -36.00215122369457, and the loss is: 43.622396146440934\n",
      "When time is : 1368, get best_k: 9.311427284286113 best_b: -36.0021192040805, and the loss is: 43.62239509586028\n",
      "When time is : 1369, get best_k: 9.311422250761497 best_b: -36.00208718523642, and the loss is: 43.622394045330154\n",
      "When time is : 1370, get best_k: 9.311417217357924 best_b: -36.002055167162304, and the loss is: 43.62239299485054\n",
      "When time is : 1371, get best_k: 9.31141218407539 best_b: -36.00202314985813, and the loss is: 43.62239194442154\n",
      "When time is : 1372, get best_k: 9.311407150913894 best_b: -36.00199113332389, and the loss is: 43.62239089404296\n",
      "When time is : 1373, get best_k: 9.311402117873431 best_b: -36.00195911755956, and the loss is: 43.622389843714934\n",
      "When time is : 1374, get best_k: 9.311397084953999 best_b: -36.00192710256511, and the loss is: 43.62238879343738\n",
      "When time is : 1375, get best_k: 9.311392052155593 best_b: -36.00189508834054, and the loss is: 43.622387743210375\n",
      "When time is : 1376, get best_k: 9.311387019478213 best_b: -36.00186307488582, and the loss is: 43.62238669303387\n",
      "When time is : 1377, get best_k: 9.311381986921855 best_b: -36.001831062200935, and the loss is: 43.622385642907915\n",
      "When time is : 1378, get best_k: 9.311376954486516 best_b: -36.00179905028587, and the loss is: 43.6223845928324\n",
      "When time is : 1379, get best_k: 9.311371922172192 best_b: -36.001767039140596, and the loss is: 43.62238354280744\n",
      "When time is : 1380, get best_k: 9.311366889978883 best_b: -36.001735028765104, and the loss is: 43.62238249283296\n",
      "When time is : 1381, get best_k: 9.311361857906583 best_b: -36.00170301915937, and the loss is: 43.62238144290897\n",
      "When time is : 1382, get best_k: 9.31135682595529 best_b: -36.001671010323385, and the loss is: 43.62238039303545\n",
      "When time is : 1383, get best_k: 9.311351794125002 best_b: -36.00163900225712, and the loss is: 43.62237934321248\n",
      "When time is : 1384, get best_k: 9.311346762415717 best_b: -36.00160699496056, and the loss is: 43.62237829343997\n",
      "When time is : 1385, get best_k: 9.31134173082743 best_b: -36.00157498843369, and the loss is: 43.62237724371792\n",
      "When time is : 1386, get best_k: 9.311336699360137 best_b: -36.00154298267648, and the loss is: 43.62237619404642\n",
      "When time is : 1387, get best_k: 9.311331668013837 best_b: -36.00151097768893, and the loss is: 43.622375144425334\n",
      "When time is : 1388, get best_k: 9.311326636788529 best_b: -36.00147897347101, and the loss is: 43.62237409485478\n",
      "When time is : 1389, get best_k: 9.311321605684206 best_b: -36.0014469700227, and the loss is: 43.62237304533466\n",
      "When time is : 1390, get best_k: 9.311316574700868 best_b: -36.00141496734398, and the loss is: 43.622371995865045\n",
      "When time is : 1391, get best_k: 9.311311543838512 best_b: -36.00138296543484, and the loss is: 43.6223709464459\n",
      "When time is : 1392, get best_k: 9.311306513097133 best_b: -36.001350964295256, and the loss is: 43.62236989707723\n",
      "When time is : 1393, get best_k: 9.31130148247673 best_b: -36.00131896392521, and the loss is: 43.622368847759056\n",
      "When time is : 1394, get best_k: 9.3112964519773 best_b: -36.001286964324684, and the loss is: 43.622367798491304\n",
      "When time is : 1395, get best_k: 9.31129142159884 best_b: -36.00125496549366, and the loss is: 43.62236674927402\n",
      "When time is : 1396, get best_k: 9.311286391341346 best_b: -36.00122296743211, and the loss is: 43.622365700107174\n",
      "When time is : 1397, get best_k: 9.311281361204815 best_b: -36.00119097014004, and the loss is: 43.62236465099084\n",
      "When time is : 1398, get best_k: 9.311276331189244 best_b: -36.00115897361741, and the loss is: 43.62236360192496\n",
      "When time is : 1399, get best_k: 9.311271301294633 best_b: -36.0011269778642, and the loss is: 43.62236255290943\n",
      "When time is : 1400, get best_k: 9.311266271520976 best_b: -36.00109498288041, and the loss is: 43.6223615039445\n",
      "When time is : 1401, get best_k: 9.311261241868271 best_b: -36.00106298866601, and the loss is: 43.62236045502989\n",
      "When time is : 1402, get best_k: 9.311256212336517 best_b: -36.00103099522097, and the loss is: 43.62235940616581\n",
      "When time is : 1403, get best_k: 9.311251182925707 best_b: -36.00099900254529, and the loss is: 43.622358357352134\n",
      "When time is : 1404, get best_k: 9.31124615363584 best_b: -36.00096701063895, and the loss is: 43.622357308588946\n",
      "When time is : 1405, get best_k: 9.311241124466916 best_b: -36.000935019501924, and the loss is: 43.622356259876135\n",
      "When time is : 1406, get best_k: 9.311236095418927 best_b: -36.00090302913419, and the loss is: 43.62235521121383\n",
      "When time is : 1407, get best_k: 9.311231066491874 best_b: -36.000871039535745, and the loss is: 43.62235416260191\n",
      "When time is : 1408, get best_k: 9.311226037685753 best_b: -36.00083905070656, and the loss is: 43.62235311404043\n",
      "When time is : 1409, get best_k: 9.31122100900056 best_b: -36.000807062646615, and the loss is: 43.62235206552941\n",
      "When time is : 1410, get best_k: 9.311215980436293 best_b: -36.0007750753559, and the loss is: 43.62235101706878\n",
      "When time is : 1411, get best_k: 9.31121095199295 best_b: -36.00074308883438, and the loss is: 43.622349968658575\n",
      "When time is : 1412, get best_k: 9.311205923670526 best_b: -36.000711103082054, and the loss is: 43.62234892029879\n",
      "When time is : 1413, get best_k: 9.31120089546902 best_b: -36.000679118098894, and the loss is: 43.62234787198947\n",
      "When time is : 1414, get best_k: 9.311195867388427 best_b: -36.00064713388488, and the loss is: 43.62234682373052\n",
      "When time is : 1415, get best_k: 9.311190839428747 best_b: -36.000615150440005, and the loss is: 43.62234577552199\n",
      "When time is : 1416, get best_k: 9.311185811589974 best_b: -36.00058316776424, and the loss is: 43.62234472736385\n",
      "When time is : 1417, get best_k: 9.311180783872107 best_b: -36.000551185857574, and the loss is: 43.62234367925621\n",
      "When time is : 1418, get best_k: 9.311175756275142 best_b: -36.00051920471998, and the loss is: 43.62234263119891\n",
      "When time is : 1419, get best_k: 9.311170728799079 best_b: -36.000487224351446, and the loss is: 43.622341583192\n",
      "When time is : 1420, get best_k: 9.311165701443912 best_b: -36.00045524475195, and the loss is: 43.6223405352355\n",
      "When time is : 1421, get best_k: 9.311160674209638 best_b: -36.00042326592147, and the loss is: 43.62233948732944\n",
      "When time is : 1422, get best_k: 9.311155647096255 best_b: -36.00039128786, and the loss is: 43.62233843947376\n",
      "When time is : 1423, get best_k: 9.311150620103762 best_b: -36.00035931056751, and the loss is: 43.62233739166847\n",
      "When time is : 1424, get best_k: 9.311145593232153 best_b: -36.00032733404399, and the loss is: 43.62233634391359\n",
      "When time is : 1425, get best_k: 9.311140566481427 best_b: -36.00029535828941, and the loss is: 43.622335296209094\n",
      "When time is : 1426, get best_k: 9.31113553985158 best_b: -36.00026338330375, and the loss is: 43.62233424855498\n",
      "When time is : 1427, get best_k: 9.31113051334261 best_b: -36.000231409087014, and the loss is: 43.62233320095118\n",
      "When time is : 1428, get best_k: 9.311125486954513 best_b: -36.00019943563917, and the loss is: 43.62233215339787\n",
      "When time is : 1429, get best_k: 9.311120460687286 best_b: -36.00016746296019, and the loss is: 43.62233110589489\n",
      "When time is : 1430, get best_k: 9.311115434540927 best_b: -36.000135491050074, and the loss is: 43.62233005844229\n",
      "When time is : 1431, get best_k: 9.311110408515432 best_b: -36.00010351990879, and the loss is: 43.622329011040094\n",
      "When time is : 1432, get best_k: 9.311105382610801 best_b: -36.00007154953632, and the loss is: 43.62232796368825\n",
      "When time is : 1433, get best_k: 9.311100356827028 best_b: -36.000039579932654, and the loss is: 43.62232691638681\n",
      "When time is : 1434, get best_k: 9.311095331164111 best_b: -36.000007611097764, and the loss is: 43.6223258691357\n",
      "When time is : 1435, get best_k: 9.311090305622047 best_b: -35.99997564303164, and the loss is: 43.622324821934995\n",
      "When time is : 1436, get best_k: 9.311085280200833 best_b: -35.99994367573426, and the loss is: 43.62232377478461\n",
      "When time is : 1437, get best_k: 9.311080254900467 best_b: -35.9999117092056, and the loss is: 43.62232272768457\n",
      "When time is : 1438, get best_k: 9.311075229720947 best_b: -35.999879743445646, and the loss is: 43.62232168063495\n",
      "When time is : 1439, get best_k: 9.311070204662268 best_b: -35.99984777845438, and the loss is: 43.622320633635645\n",
      "When time is : 1440, get best_k: 9.311065179724428 best_b: -35.99981581423179, and the loss is: 43.622319586686686\n",
      "When time is : 1441, get best_k: 9.311060154907423 best_b: -35.999783850777845, and the loss is: 43.62231853978812\n",
      "When time is : 1442, get best_k: 9.311055130211251 best_b: -35.99975188809253, and the loss is: 43.622317492939864\n",
      "When time is : 1443, get best_k: 9.311050105635909 best_b: -35.999719926175835, and the loss is: 43.62231644614196\n",
      "When time is : 1444, get best_k: 9.311045081181394 best_b: -35.99968796502773, and the loss is: 43.622315399394466\n",
      "When time is : 1445, get best_k: 9.311040056847704 best_b: -35.99965600464821, and the loss is: 43.622314352697224\n",
      "When time is : 1446, get best_k: 9.311035032634834 best_b: -35.999624045037244, and the loss is: 43.622313306050316\n",
      "When time is : 1447, get best_k: 9.311030008542783 best_b: -35.999592086194816, and the loss is: 43.62231225945383\n",
      "When time is : 1448, get best_k: 9.311024984571548 best_b: -35.99956012812091, and the loss is: 43.62231121290767\n",
      "When time is : 1449, get best_k: 9.311019960721126 best_b: -35.99952817081551, and the loss is: 43.622310166411836\n",
      "When time is : 1450, get best_k: 9.311014936991512 best_b: -35.999496214278594, and the loss is: 43.622309119966275\n",
      "When time is : 1451, get best_k: 9.311009913382707 best_b: -35.999464258510145, and the loss is: 43.62230807357107\n",
      "When time is : 1452, get best_k: 9.311004889894704 best_b: -35.99943230351014, and the loss is: 43.62230702722614\n",
      "When time is : 1453, get best_k: 9.310999866527503 best_b: -35.99940034927857, and the loss is: 43.62230598093163\n",
      "When time is : 1454, get best_k: 9.3109948432811 best_b: -35.9993683958154, and the loss is: 43.62230493468739\n",
      "When time is : 1455, get best_k: 9.310989820155491 best_b: -35.999336443120626, and the loss is: 43.622303888493505\n",
      "When time is : 1456, get best_k: 9.310984797150676 best_b: -35.99930449119422, and the loss is: 43.622302842349896\n",
      "When time is : 1457, get best_k: 9.310979774266649 best_b: -35.99927254003618, and the loss is: 43.6223017962566\n",
      "When time is : 1458, get best_k: 9.310974751503409 best_b: -35.999240589646476, and the loss is: 43.622300750213626\n",
      "When time is : 1459, get best_k: 9.310969728860952 best_b: -35.99920864002509, and the loss is: 43.62229970422091\n",
      "When time is : 1460, get best_k: 9.310964706339275 best_b: -35.999176691171996, and the loss is: 43.62229865827861\n",
      "When time is : 1461, get best_k: 9.310959683938377 best_b: -35.999144743087186, and the loss is: 43.62229761238655\n",
      "When time is : 1462, get best_k: 9.310954661658252 best_b: -35.99911279577064, and the loss is: 43.622296566544776\n",
      "When time is : 1463, get best_k: 9.3109496394989 best_b: -35.99908084922234, and the loss is: 43.622295520753354\n",
      "When time is : 1464, get best_k: 9.310944617460319 best_b: -35.999048903442265, and the loss is: 43.62229447501216\n",
      "When time is : 1465, get best_k: 9.310939595542502 best_b: -35.999016958430396, and the loss is: 43.62229342932129\n",
      "When time is : 1466, get best_k: 9.310934573745449 best_b: -35.998985014186715, and the loss is: 43.62229238368069\n",
      "When time is : 1467, get best_k: 9.310929552069156 best_b: -35.99895307071121, and the loss is: 43.622291338090456\n",
      "When time is : 1468, get best_k: 9.31092453051362 best_b: -35.99892112800385, and the loss is: 43.622290292550446\n",
      "When time is : 1469, get best_k: 9.31091950907884 best_b: -35.99888918606463, and the loss is: 43.62228924706071\n",
      "When time is : 1470, get best_k: 9.31091448776481 best_b: -35.99885724489352, and the loss is: 43.62228820162126\n",
      "When time is : 1471, get best_k: 9.310909466571529 best_b: -35.99882530449051, and the loss is: 43.622287156232105\n",
      "When time is : 1472, get best_k: 9.310904445498993 best_b: -35.99879336485558, and the loss is: 43.62228611089318\n",
      "When time is : 1473, get best_k: 9.3108994245472 best_b: -35.998761425988704, and the loss is: 43.62228506560462\n",
      "When time is : 1474, get best_k: 9.310894403716148 best_b: -35.99872948788987, and the loss is: 43.622284020366294\n",
      "When time is : 1475, get best_k: 9.310889383005833 best_b: -35.99869755055906, and the loss is: 43.62228297517821\n",
      "When time is : 1476, get best_k: 9.310884362416251 best_b: -35.99866561399625, and the loss is: 43.62228193004045\n",
      "When time is : 1477, get best_k: 9.3108793419474 best_b: -35.99863367820143, and the loss is: 43.62228088495289\n",
      "When time is : 1478, get best_k: 9.310874321599279 best_b: -35.998601743174575, and the loss is: 43.62227983991564\n",
      "When time is : 1479, get best_k: 9.310869301371882 best_b: -35.99856980891567, and the loss is: 43.62227879492859\n",
      "When time is : 1480, get best_k: 9.310864281265209 best_b: -35.998537875424695, and the loss is: 43.62227774999185\n",
      "When time is : 1481, get best_k: 9.310859261279255 best_b: -35.998505942701634, and the loss is: 43.622276705105364\n",
      "When time is : 1482, get best_k: 9.310854241414017 best_b: -35.99847401074646, and the loss is: 43.62227566026913\n",
      "When time is : 1483, get best_k: 9.310849221669493 best_b: -35.99844207955917, and the loss is: 43.62227461548314\n",
      "When time is : 1484, get best_k: 9.31084420204568 best_b: -35.99841014913973, and the loss is: 43.622273570747375\n",
      "When time is : 1485, get best_k: 9.310839182542574 best_b: -35.99837821948813, and the loss is: 43.62227252606188\n",
      "When time is : 1486, get best_k: 9.310834163160175 best_b: -35.99834629060435, and the loss is: 43.62227148142662\n",
      "When time is : 1487, get best_k: 9.310829143898477 best_b: -35.99831436248837, and the loss is: 43.62227043684158\n",
      "When time is : 1488, get best_k: 9.31082412475748 best_b: -35.998282435140176, and the loss is: 43.62226939230683\n",
      "When time is : 1489, get best_k: 9.310819105737178 best_b: -35.99825050855974, and the loss is: 43.62226834782225\n",
      "When time is : 1490, get best_k: 9.310814086837569 best_b: -35.99821858274706, and the loss is: 43.62226730338799\n",
      "When time is : 1491, get best_k: 9.310809068058651 best_b: -35.9981866577021, and the loss is: 43.622266259003844\n",
      "When time is : 1492, get best_k: 9.31080404940042 best_b: -35.99815473342485, and the loss is: 43.62226521466998\n",
      "When time is : 1493, get best_k: 9.310799030862876 best_b: -35.99812280991529, and the loss is: 43.622264170386416\n",
      "When time is : 1494, get best_k: 9.310794012446014 best_b: -35.9980908871734, and the loss is: 43.62226312615303\n",
      "When time is : 1495, get best_k: 9.31078899414983 best_b: -35.998058965199164, and the loss is: 43.622262081969836\n",
      "When time is : 1496, get best_k: 9.31078397597432 best_b: -35.998027043992565, and the loss is: 43.62226103783687\n",
      "When time is : 1497, get best_k: 9.310778957919485 best_b: -35.99799512355358, and the loss is: 43.62225999375409\n",
      "When time is : 1498, get best_k: 9.31077393998532 best_b: -35.99796320388219, and the loss is: 43.62225894972157\n",
      "When time is : 1499, get best_k: 9.310768922171823 best_b: -35.997931284978385, and the loss is: 43.622257905739275\n",
      "When time is : 1500, get best_k: 9.310763904478991 best_b: -35.99789936684214, and the loss is: 43.62225686180716\n",
      "When time is : 1501, get best_k: 9.31075888690682 best_b: -35.99786744947344, and the loss is: 43.62225581792526\n",
      "When time is : 1502, get best_k: 9.310753869455308 best_b: -35.997835532872266, and the loss is: 43.622254774093555\n",
      "When time is : 1503, get best_k: 9.310748852124451 best_b: -35.99780361703859, and the loss is: 43.62225373031207\n",
      "When time is : 1504, get best_k: 9.310743834914248 best_b: -35.99777170197241, and the loss is: 43.62225268658077\n",
      "When time is : 1505, get best_k: 9.310738817824694 best_b: -35.997739787673694, and the loss is: 43.62225164289967\n",
      "When time is : 1506, get best_k: 9.310733800855788 best_b: -35.99770787414243, and the loss is: 43.622250599268746\n",
      "When time is : 1507, get best_k: 9.310728784007525 best_b: -35.9976759613786, and the loss is: 43.622249555688086\n",
      "When time is : 1508, get best_k: 9.310723767279903 best_b: -35.99764404938218, and the loss is: 43.622248512157505\n",
      "When time is : 1509, get best_k: 9.31071875067292 best_b: -35.99761213815316, and the loss is: 43.622247468677166\n",
      "When time is : 1510, get best_k: 9.310713734186574 best_b: -35.99758022769151, and the loss is: 43.62224642524706\n",
      "When time is : 1511, get best_k: 9.31070871782086 best_b: -35.99754831799722, and the loss is: 43.62224538186709\n",
      "When time is : 1512, get best_k: 9.310703701575775 best_b: -35.99751640907027, and the loss is: 43.62224433853724\n",
      "When time is : 1513, get best_k: 9.310698685451317 best_b: -35.997484500910645, and the loss is: 43.62224329525766\n",
      "When time is : 1514, get best_k: 9.310693669447483 best_b: -35.99745259351832, and the loss is: 43.62224225202821\n",
      "When time is : 1515, get best_k: 9.31068865356427 best_b: -35.99742068689328, and the loss is: 43.62224120884895\n",
      "When time is : 1516, get best_k: 9.310683637801676 best_b: -35.997388781035504, and the loss is: 43.62224016571986\n",
      "When time is : 1517, get best_k: 9.310678622159696 best_b: -35.99735687594497, and the loss is: 43.62223912264093\n",
      "When time is : 1518, get best_k: 9.310673606638328 best_b: -35.99732497162167, and the loss is: 43.62223807961219\n",
      "When time is : 1519, get best_k: 9.31066859123757 best_b: -35.99729306806558, and the loss is: 43.62223703663362\n",
      "When time is : 1520, get best_k: 9.310663575957419 best_b: -35.99726116527668, and the loss is: 43.62223599370515\n",
      "When time is : 1521, get best_k: 9.31065856079787 best_b: -35.99722926325496, and the loss is: 43.622234950826844\n",
      "When time is : 1522, get best_k: 9.310653545758923 best_b: -35.99719736200039, and the loss is: 43.62223390799874\n",
      "When time is : 1523, get best_k: 9.310648530840572 best_b: -35.997165461512964, and the loss is: 43.62223286522073\n",
      "When time is : 1524, get best_k: 9.310643516042816 best_b: -35.99713356179265, and the loss is: 43.622231822492914\n",
      "When time is : 1525, get best_k: 9.310638501365654 best_b: -35.99710166283944, and the loss is: 43.62223077981529\n",
      "When time is : 1526, get best_k: 9.31063348680908 best_b: -35.99706976465331, and the loss is: 43.62222973718779\n",
      "When time is : 1527, get best_k: 9.310628472373091 best_b: -35.99703786723424, and the loss is: 43.62222869461041\n",
      "When time is : 1528, get best_k: 9.310623458057687 best_b: -35.997005970582215, and the loss is: 43.62222765208316\n",
      "When time is : 1529, get best_k: 9.310618443862863 best_b: -35.99697407469721, and the loss is: 43.6222266096061\n",
      "When time is : 1530, get best_k: 9.310613429788617 best_b: -35.99694217957922, and the loss is: 43.622225567179136\n",
      "When time is : 1531, get best_k: 9.310608415834945 best_b: -35.99691028522822, and the loss is: 43.622224524802306\n",
      "When time is : 1532, get best_k: 9.310603402001846 best_b: -35.99687839164419, and the loss is: 43.622223482475576\n",
      "When time is : 1533, get best_k: 9.310598388289314 best_b: -35.99684649882711, and the loss is: 43.622222440199\n",
      "When time is : 1534, get best_k: 9.310593374697348 best_b: -35.996814606776965, and the loss is: 43.622221397972616\n",
      "When time is : 1535, get best_k: 9.310588361225944 best_b: -35.99678271549374, and the loss is: 43.62222035579631\n",
      "When time is : 1536, get best_k: 9.310583347875102 best_b: -35.996750824977404, and the loss is: 43.6222193136701\n",
      "When time is : 1537, get best_k: 9.310578334644816 best_b: -35.996718935227946, and the loss is: 43.62221827159407\n",
      "When time is : 1538, get best_k: 9.310573321535085 best_b: -35.99668704624535, and the loss is: 43.622217229568086\n",
      "When time is : 1539, get best_k: 9.310568308545905 best_b: -35.9966551580296, and the loss is: 43.62221618759228\n",
      "When time is : 1540, get best_k: 9.310563295677275 best_b: -35.99662327058067, and the loss is: 43.622215145666544\n",
      "When time is : 1541, get best_k: 9.31055828292919 best_b: -35.99659138389855, and the loss is: 43.62221410379089\n",
      "When time is : 1542, get best_k: 9.310553270301646 best_b: -35.996559497983206, and the loss is: 43.62221306196541\n",
      "When time is : 1543, get best_k: 9.310548257794643 best_b: -35.99652761283463, and the loss is: 43.62221202019003\n",
      "When time is : 1544, get best_k: 9.310543245408176 best_b: -35.996495728452814, and the loss is: 43.62221097846468\n",
      "When time is : 1545, get best_k: 9.310538233142244 best_b: -35.99646384483772, and the loss is: 43.622209936789496\n",
      "When time is : 1546, get best_k: 9.310533220996843 best_b: -35.996431961989344, and the loss is: 43.622208895164405\n",
      "When time is : 1547, get best_k: 9.31052820897197 best_b: -35.99640007990766, and the loss is: 43.62220785358944\n",
      "When time is : 1548, get best_k: 9.310523197067623 best_b: -35.99636819859265, and the loss is: 43.622206812064505\n",
      "When time is : 1549, get best_k: 9.310518185283797 best_b: -35.9963363180443, and the loss is: 43.62220577058967\n",
      "When time is : 1550, get best_k: 9.310513173620492 best_b: -35.996304438262584, and the loss is: 43.62220472916494\n",
      "When time is : 1551, get best_k: 9.310508162077703 best_b: -35.996272559247494, and the loss is: 43.622203687790325\n",
      "When time is : 1552, get best_k: 9.310503150655428 best_b: -35.996240680999, and the loss is: 43.622202646465794\n",
      "When time is : 1553, get best_k: 9.310498139353664 best_b: -35.99620880351709, and the loss is: 43.62220160519127\n",
      "When time is : 1554, get best_k: 9.310493128172407 best_b: -35.99617692680175, and the loss is: 43.62220056396694\n",
      "When time is : 1555, get best_k: 9.310488117111655 best_b: -35.99614505085296, and the loss is: 43.62219952279257\n",
      "When time is : 1556, get best_k: 9.310483106171406 best_b: -35.99611317567069, and the loss is: 43.622198481668335\n",
      "When time is : 1557, get best_k: 9.310478095351655 best_b: -35.99608130125493, and the loss is: 43.622197440594135\n",
      "When time is : 1558, get best_k: 9.3104730846524 best_b: -35.99604942760567, and the loss is: 43.622196399570036\n",
      "When time is : 1559, get best_k: 9.31046807407364 best_b: -35.996017554722876, and the loss is: 43.62219535859598\n",
      "When time is : 1560, get best_k: 9.31046306361537 best_b: -35.99598568260654, and the loss is: 43.62219431767198\n",
      "When time is : 1561, get best_k: 9.310458053277587 best_b: -35.99595381125663, and the loss is: 43.622193276798114\n",
      "When time is : 1562, get best_k: 9.31045304306029 best_b: -35.99592194067315, and the loss is: 43.62219223597423\n",
      "When time is : 1563, get best_k: 9.310448032963475 best_b: -35.99589007085606, and the loss is: 43.62219119520044\n",
      "When time is : 1564, get best_k: 9.310443022987137 best_b: -35.995858201805355, and the loss is: 43.62219015447672\n",
      "When time is : 1565, get best_k: 9.310438013131275 best_b: -35.99582633352101, and the loss is: 43.62218911380299\n",
      "When time is : 1566, get best_k: 9.310433003395888 best_b: -35.99579446600301, and the loss is: 43.622188073179366\n",
      "When time is : 1567, get best_k: 9.31042799378097 best_b: -35.995762599251336, and the loss is: 43.622187032605794\n",
      "When time is : 1568, get best_k: 9.31042298428652 best_b: -35.995730733265965, and the loss is: 43.62218599208224\n",
      "When time is : 1569, get best_k: 9.310417974912534 best_b: -35.99569886804689, and the loss is: 43.62218495160876\n",
      "When time is : 1570, get best_k: 9.31041296565901 best_b: -35.99566700359408, and the loss is: 43.62218391118527\n",
      "When time is : 1571, get best_k: 9.310407956525944 best_b: -35.99563513990752, and the loss is: 43.62218287081185\n",
      "When time is : 1572, get best_k: 9.310402947513335 best_b: -35.9956032769872, and the loss is: 43.622181830488415\n",
      "When time is : 1573, get best_k: 9.310397938621177 best_b: -35.99557141483309, and the loss is: 43.622180790215126\n",
      "When time is : 1574, get best_k: 9.31039292984947 best_b: -35.99553955344518, and the loss is: 43.62217974999178\n",
      "When time is : 1575, get best_k: 9.31038792119821 best_b: -35.995507692823445, and the loss is: 43.62217870981853\n",
      "When time is : 1576, get best_k: 9.310382912667395 best_b: -35.99547583296787, and the loss is: 43.622177669695226\n",
      "When time is : 1577, get best_k: 9.31037790425702 best_b: -35.99544397387844, and the loss is: 43.62217662962194\n",
      "When time is : 1578, get best_k: 9.310372895967085 best_b: -35.995412115555126, and the loss is: 43.62217558959874\n",
      "When time is : 1579, get best_k: 9.310367887797584 best_b: -35.99538025799792, and the loss is: 43.62217454962551\n",
      "When time is : 1580, get best_k: 9.310362879748515 best_b: -35.995348401206805, and the loss is: 43.62217350970229\n",
      "When time is : 1581, get best_k: 9.310357871819877 best_b: -35.99531654518175, and the loss is: 43.622172469829145\n",
      "When time is : 1582, get best_k: 9.310352864011666 best_b: -35.99528468992275, and the loss is: 43.62217143000599\n",
      "When time is : 1583, get best_k: 9.310347856323878 best_b: -35.995252835429774, and the loss is: 43.6221703902328\n",
      "When time is : 1584, get best_k: 9.31034284875651 best_b: -35.995220981702815, and the loss is: 43.62216935050969\n",
      "When time is : 1585, get best_k: 9.310337841309563 best_b: -35.99518912874185, and the loss is: 43.62216831083652\n",
      "When time is : 1586, get best_k: 9.31033283398303 best_b: -35.995157276546855, and the loss is: 43.62216727121341\n",
      "When time is : 1587, get best_k: 9.310327826776907 best_b: -35.99512542511782, and the loss is: 43.622166231640186\n",
      "When time is : 1588, get best_k: 9.310322819691196 best_b: -35.99509357445472, and the loss is: 43.6221651921171\n",
      "When time is : 1589, get best_k: 9.310317812725891 best_b: -35.995061724557544, and the loss is: 43.62216415264392\n",
      "When time is : 1590, get best_k: 9.31031280588099 best_b: -35.99502987542627, and the loss is: 43.62216311322078\n",
      "When time is : 1591, get best_k: 9.310307799156488 best_b: -35.99499802706088, and the loss is: 43.622162073847576\n",
      "When time is : 1592, get best_k: 9.310302792552385 best_b: -35.99496617946136, and the loss is: 43.62216103452442\n",
      "When time is : 1593, get best_k: 9.310297786068677 best_b: -35.99493433262768, and the loss is: 43.622159995251224\n",
      "When time is : 1594, get best_k: 9.310292779705362 best_b: -35.99490248655983, and the loss is: 43.62215895602801\n",
      "When time is : 1595, get best_k: 9.310287773462436 best_b: -35.99487064125779, and the loss is: 43.62215791685474\n",
      "When time is : 1596, get best_k: 9.310282767339896 best_b: -35.99483879672154, and the loss is: 43.622156877731534\n",
      "When time is : 1597, get best_k: 9.310277761337739 best_b: -35.99480695295106, and the loss is: 43.622155838658216\n",
      "When time is : 1598, get best_k: 9.310272755455962 best_b: -35.99477510994633, and the loss is: 43.6221547996349\n",
      "When time is : 1599, get best_k: 9.310267749694564 best_b: -35.99474326770734, and the loss is: 43.6221537606616\n",
      "When time is : 1600, get best_k: 9.310262744053539 best_b: -35.99471142623407, and the loss is: 43.622152721738196\n",
      "When time is : 1601, get best_k: 9.310257738532886 best_b: -35.9946795855265, and the loss is: 43.62215168286481\n",
      "When time is : 1602, get best_k: 9.310252733132602 best_b: -35.99464774558461, and the loss is: 43.62215064404137\n",
      "When time is : 1603, get best_k: 9.310247727852683 best_b: -35.99461590640838, and the loss is: 43.622149605267836\n",
      "When time is : 1604, get best_k: 9.310242722693129 best_b: -35.99458406799779, and the loss is: 43.622148566544325\n",
      "When time is : 1605, get best_k: 9.310237717653935 best_b: -35.99455223035283, and the loss is: 43.622147527870816\n",
      "When time is : 1606, get best_k: 9.310232712735099 best_b: -35.99452039347348, and the loss is: 43.622146489247164\n",
      "When time is : 1607, get best_k: 9.310227707936615 best_b: -35.994488557359716, and the loss is: 43.62214545067352\n",
      "When time is : 1608, get best_k: 9.310222703258484 best_b: -35.99445672201152, and the loss is: 43.62214441214981\n",
      "When time is : 1609, get best_k: 9.3102176987007 best_b: -35.99442488742888, and the loss is: 43.622143373676025\n",
      "When time is : 1610, get best_k: 9.310212694263264 best_b: -35.994393053611766, and the loss is: 43.622142335252185\n",
      "When time is : 1611, get best_k: 9.31020768994617 best_b: -35.99436122056017, and the loss is: 43.62214129687836\n",
      "When time is : 1612, get best_k: 9.310202685749415 best_b: -35.994329388274075, and the loss is: 43.62214025855438\n",
      "When time is : 1613, get best_k: 9.310197681672998 best_b: -35.99429755675346, and the loss is: 43.62213922028037\n",
      "When time is : 1614, get best_k: 9.310192677716914 best_b: -35.994265725998304, and the loss is: 43.62213818205637\n",
      "When time is : 1615, get best_k: 9.310187673881163 best_b: -35.99423389600859, and the loss is: 43.62213714388223\n",
      "When time is : 1616, get best_k: 9.31018267016574 best_b: -35.9942020667843, and the loss is: 43.622136105758\n",
      "When time is : 1617, get best_k: 9.310177666570643 best_b: -35.99417023832541, and the loss is: 43.6221350676837\n",
      "When time is : 1618, get best_k: 9.310172663095868 best_b: -35.994138410631905, and the loss is: 43.62213402965934\n",
      "When time is : 1619, get best_k: 9.310167659741412 best_b: -35.99410658370377, and the loss is: 43.62213299168494\n",
      "When time is : 1620, get best_k: 9.310162656507273 best_b: -35.99407475754098, and the loss is: 43.622131953760444\n",
      "When time is : 1621, get best_k: 9.310157653393448 best_b: -35.99404293214352, and the loss is: 43.62213091588583\n",
      "When time is : 1622, get best_k: 9.310152650399933 best_b: -35.994011107511376, and the loss is: 43.62212987806115\n",
      "When time is : 1623, get best_k: 9.310147647526728 best_b: -35.99397928364453, and the loss is: 43.622128840286386\n",
      "When time is : 1624, get best_k: 9.310142644773828 best_b: -35.993947460542955, and the loss is: 43.62212780256155\n",
      "When time is : 1625, get best_k: 9.31013764214123 best_b: -35.99391563820664, and the loss is: 43.62212676488659\n",
      "When time is : 1626, get best_k: 9.31013263962893 best_b: -35.99388381663556, and the loss is: 43.62212572726155\n",
      "When time is : 1627, get best_k: 9.310127637236928 best_b: -35.9938519958297, and the loss is: 43.622124689686416\n",
      "When time is : 1628, get best_k: 9.31012263496522 best_b: -35.99382017578905, and the loss is: 43.622123652161214\n",
      "When time is : 1629, get best_k: 9.310117632813801 best_b: -35.993788356513576, and the loss is: 43.62212261468585\n",
      "When time is : 1630, get best_k: 9.31011263078267 best_b: -35.99375653800327, and the loss is: 43.622121577260394\n",
      "When time is : 1631, get best_k: 9.310107628871826 best_b: -35.99372472025811, and the loss is: 43.622120539884875\n",
      "When time is : 1632, get best_k: 9.310102627081264 best_b: -35.99369290327808, and the loss is: 43.62211950255918\n",
      "When time is : 1633, get best_k: 9.31009762541098 best_b: -35.99366108706316, and the loss is: 43.62211846528344\n",
      "When time is : 1634, get best_k: 9.310092623860973 best_b: -35.99362927161333, and the loss is: 43.62211742805754\n",
      "When time is : 1635, get best_k: 9.310087622431238 best_b: -35.993597456928576, and the loss is: 43.622116390881594\n",
      "When time is : 1636, get best_k: 9.310082621121776 best_b: -35.99356564300888, and the loss is: 43.62211535375545\n",
      "When time is : 1637, get best_k: 9.31007761993258 best_b: -35.993533829854215, and the loss is: 43.62211431667924\n",
      "When time is : 1638, get best_k: 9.310072618863648 best_b: -35.99350201746457, and the loss is: 43.62211327965289\n",
      "When time is : 1639, get best_k: 9.31006761791498 best_b: -35.99347020583993, and the loss is: 43.62211224267638\n",
      "When time is : 1640, get best_k: 9.310062617086569 best_b: -35.99343839498027, and the loss is: 43.62211120574982\n",
      "When time is : 1641, get best_k: 9.310057616378415 best_b: -35.99340658488556, and the loss is: 43.62211016887299\n",
      "When time is : 1642, get best_k: 9.310052615790514 best_b: -35.99337477555581, and the loss is: 43.62210913204617\n",
      "When time is : 1643, get best_k: 9.310047615322864 best_b: -35.99334296699098, and the loss is: 43.6221080952692\n",
      "When time is : 1644, get best_k: 9.31004261497546 best_b: -35.99331115919106, and the loss is: 43.62210705854202\n",
      "When time is : 1645, get best_k: 9.310037614748301 best_b: -35.99327935215602, and the loss is: 43.62210602186474\n",
      "When time is : 1646, get best_k: 9.310032614641385 best_b: -35.99324754588586, and the loss is: 43.62210498523731\n",
      "When time is : 1647, get best_k: 9.310027614654706 best_b: -35.99321574038055, and the loss is: 43.62210394865974\n",
      "When time is : 1648, get best_k: 9.310022614788263 best_b: -35.993183935640076, and the loss is: 43.622102912132036\n",
      "When time is : 1649, get best_k: 9.310017615042053 best_b: -35.99315213166442, and the loss is: 43.62210187565417\n",
      "When time is : 1650, get best_k: 9.310012615416074 best_b: -35.99312032845356, and the loss is: 43.62210083922607\n",
      "When time is : 1651, get best_k: 9.31000761591032 best_b: -35.993088526007476, and the loss is: 43.622099802847956\n",
      "When time is : 1652, get best_k: 9.310002616524793 best_b: -35.99305672432615, and the loss is: 43.62209876651962\n",
      "When time is : 1653, get best_k: 9.309997617259485 best_b: -35.99302492340957, and the loss is: 43.62209773024114\n",
      "When time is : 1654, get best_k: 9.309992618114396 best_b: -35.99299312325771, and the loss is: 43.62209669401246\n",
      "When time is : 1655, get best_k: 9.309987619089524 best_b: -35.99296132387056, and the loss is: 43.62209565783367\n",
      "When time is : 1656, get best_k: 9.309982620184863 best_b: -35.992929525248094, and the loss is: 43.622094621704704\n",
      "When time is : 1657, get best_k: 9.309977621400412 best_b: -35.9928977273903, and the loss is: 43.622093585625535\n",
      "When time is : 1658, get best_k: 9.309972622736169 best_b: -35.99286593029716, and the loss is: 43.62209254959623\n",
      "When time is : 1659, get best_k: 9.30996762419213 best_b: -35.99283413396864, and the loss is: 43.62209151361673\n",
      "When time is : 1660, get best_k: 9.309962625768291 best_b: -35.99280233840474, and the loss is: 43.62209047768708\n",
      "When time is : 1661, get best_k: 9.30995762746465 best_b: -35.99277054360544, and the loss is: 43.62208944180722\n",
      "When time is : 1662, get best_k: 9.309952629281204 best_b: -35.99273874957071, and the loss is: 43.62208840597717\n",
      "When time is : 1663, get best_k: 9.309947631217952 best_b: -35.992706956300545, and the loss is: 43.62208737019696\n",
      "When time is : 1664, get best_k: 9.309942633274888 best_b: -35.992675163794914, and the loss is: 43.6220863344666\n",
      "When time is : 1665, get best_k: 9.309937635452012 best_b: -35.992643372053806, and the loss is: 43.622085298786054\n",
      "When time is : 1666, get best_k: 9.30993263774932 best_b: -35.9926115810772, and the loss is: 43.62208426315523\n",
      "When time is : 1667, get best_k: 9.309927640166809 best_b: -35.99257979086508, and the loss is: 43.62208322757422\n",
      "When time is : 1668, get best_k: 9.309922642704475 best_b: -35.992548001417425, and the loss is: 43.62208219204312\n",
      "When time is : 1669, get best_k: 9.309917645362317 best_b: -35.99251621273422, and the loss is: 43.62208115656172\n",
      "When time is : 1670, get best_k: 9.309912648140331 best_b: -35.992484424815444, and the loss is: 43.62208012113017\n",
      "When time is : 1671, get best_k: 9.309907651038515 best_b: -35.99245263766108, and the loss is: 43.62207908574842\n",
      "When time is : 1672, get best_k: 9.309902654056863 best_b: -35.99242085127111, and the loss is: 43.622078050416455\n",
      "When time is : 1673, get best_k: 9.309897657195377 best_b: -35.99238906564552, and the loss is: 43.6220770151343\n",
      "When time is : 1674, get best_k: 9.30989266045405 best_b: -35.992357280784276, and the loss is: 43.6220759799019\n",
      "When time is : 1675, get best_k: 9.309887663832882 best_b: -35.99232549668737, and the loss is: 43.62207494471931\n",
      "When time is : 1676, get best_k: 9.309882667331868 best_b: -35.99229371335479, and the loss is: 43.62207390958649\n",
      "When time is : 1677, get best_k: 9.309877670951007 best_b: -35.992261930786505, and the loss is: 43.62207287450351\n",
      "When time is : 1678, get best_k: 9.309872674690293 best_b: -35.99223014898251, and the loss is: 43.62207183947025\n",
      "When time is : 1679, get best_k: 9.309867678549727 best_b: -35.99219836794277, and the loss is: 43.62207080448682\n",
      "When time is : 1680, get best_k: 9.309862682529303 best_b: -35.99216658766728, and the loss is: 43.622069769553114\n",
      "When time is : 1681, get best_k: 9.309857686629021 best_b: -35.99213480815602, and the loss is: 43.62206873466916\n",
      "When time is : 1682, get best_k: 9.309852690848876 best_b: -35.992103029408966, and the loss is: 43.622067699835036\n",
      "When time is : 1683, get best_k: 9.309847695188866 best_b: -35.992071251426104, and the loss is: 43.62206666505071\n",
      "When time is : 1684, get best_k: 9.309842699648987 best_b: -35.99203947420742, and the loss is: 43.62206563031611\n",
      "When time is : 1685, get best_k: 9.309837704229238 best_b: -35.99200769775288, and the loss is: 43.622064595631244\n",
      "When time is : 1686, get best_k: 9.309832708929614 best_b: -35.99197592206248, and the loss is: 43.622063560996175\n",
      "When time is : 1687, get best_k: 9.309827713750114 best_b: -35.991944147136195, and the loss is: 43.622062526410836\n",
      "When time is : 1688, get best_k: 9.309822718690732 best_b: -35.991912372974014, and the loss is: 43.62206149187526\n",
      "When time is : 1689, get best_k: 9.309817723751468 best_b: -35.99188059957591, and the loss is: 43.622060457389516\n",
      "When time is : 1690, get best_k: 9.30981272893232 best_b: -35.99184882694186, and the loss is: 43.62205942295339\n",
      "When time is : 1691, get best_k: 9.309807734233283 best_b: -35.99181705507186, and the loss is: 43.62205838856708\n",
      "When time is : 1692, get best_k: 9.309802739654355 best_b: -35.99178528396589, and the loss is: 43.62205735423057\n",
      "When time is : 1693, get best_k: 9.309797745195532 best_b: -35.99175351362393, and the loss is: 43.6220563199437\n",
      "When time is : 1694, get best_k: 9.309792750856811 best_b: -35.99172174404595, and the loss is: 43.622055285706665\n",
      "When time is : 1695, get best_k: 9.309787756638192 best_b: -35.99168997523194, and the loss is: 43.62205425151934\n",
      "When time is : 1696, get best_k: 9.309782762539669 best_b: -35.991658207181885, and the loss is: 43.62205321738175\n",
      "When time is : 1697, get best_k: 9.30977776856124 best_b: -35.99162643989576, and the loss is: 43.62205218329393\n",
      "When time is : 1698, get best_k: 9.309772774702903 best_b: -35.991594673373555, and the loss is: 43.622051149255775\n",
      "When time is : 1699, get best_k: 9.309767780964654 best_b: -35.99156290761525, and the loss is: 43.622050115267406\n",
      "When time is : 1700, get best_k: 9.309762787346491 best_b: -35.991531142620815, and the loss is: 43.622049081328726\n",
      "When time is : 1701, get best_k: 9.30975779384841 best_b: -35.991499378390245, and the loss is: 43.6220480474398\n",
      "When time is : 1702, get best_k: 9.30975280047041 best_b: -35.991467614923515, and the loss is: 43.62204701360055\n",
      "When time is : 1703, get best_k: 9.309747807212485 best_b: -35.99143585222061, and the loss is: 43.622045979811084\n",
      "When time is : 1704, get best_k: 9.309742814074635 best_b: -35.99140409028151, and the loss is: 43.622044946071306\n",
      "When time is : 1705, get best_k: 9.309737821056856 best_b: -35.9913723291062, and the loss is: 43.62204391238121\n",
      "When time is : 1706, get best_k: 9.309732828159145 best_b: -35.99134056869465, and the loss is: 43.62204287874093\n",
      "When time is : 1707, get best_k: 9.3097278353815 best_b: -35.991308809046856, and the loss is: 43.62204184515029\n",
      "When time is : 1708, get best_k: 9.309722842723916 best_b: -35.99127705016279, and the loss is: 43.62204081160939\n",
      "When time is : 1709, get best_k: 9.309717850186393 best_b: -35.99124529204244, and the loss is: 43.62203977811816\n",
      "When time is : 1710, get best_k: 9.309712857768927 best_b: -35.991213534685784, and the loss is: 43.62203874467664\n",
      "When time is : 1711, get best_k: 9.309707865471514 best_b: -35.9911817780928, and the loss is: 43.622037711284804\n",
      "When time is : 1712, get best_k: 9.309702873294153 best_b: -35.991150022263476, and the loss is: 43.62203667794271\n",
      "When time is : 1713, get best_k: 9.30969788123684 best_b: -35.99111826719779, and the loss is: 43.622035644650296\n",
      "When time is : 1714, get best_k: 9.309692889299571 best_b: -35.99108651289573, and the loss is: 43.622034611407635\n",
      "When time is : 1715, get best_k: 9.309687897482345 best_b: -35.99105475935727, and the loss is: 43.62203357821457\n",
      "When time is : 1716, get best_k: 9.309682905785158 best_b: -35.991023006582395, and the loss is: 43.62203254507125\n",
      "When time is : 1717, get best_k: 9.309677914208008 best_b: -35.990991254571085, and the loss is: 43.62203151197761\n",
      "When time is : 1718, get best_k: 9.309672922750892 best_b: -35.990959503323324, and the loss is: 43.62203047893363\n",
      "When time is : 1719, get best_k: 9.309667931413806 best_b: -35.99092775283909, and the loss is: 43.62202944593935\n",
      "When time is : 1720, get best_k: 9.309662940196747 best_b: -35.99089600311837, and the loss is: 43.622028412994794\n",
      "When time is : 1721, get best_k: 9.309657949099714 best_b: -35.990864254161146, and the loss is: 43.622027380099865\n",
      "When time is : 1722, get best_k: 9.309652958122703 best_b: -35.99083250596739, and the loss is: 43.622026347254646\n",
      "When time is : 1723, get best_k: 9.309647967265711 best_b: -35.99080075853709, and the loss is: 43.62202531445905\n",
      "When time is : 1724, get best_k: 9.309642976528735 best_b: -35.99076901187023, and the loss is: 43.62202428171315\n",
      "When time is : 1725, get best_k: 9.309637985911772 best_b: -35.990737265966786, and the loss is: 43.622023249016976\n",
      "When time is : 1726, get best_k: 9.30963299541482 best_b: -35.990705520826744, and the loss is: 43.6220222163704\n",
      "When time is : 1727, get best_k: 9.309628005037874 best_b: -35.99067377645009, and the loss is: 43.62202118377351\n",
      "When time is : 1728, get best_k: 9.309623014780934 best_b: -35.990642032836796, and the loss is: 43.62202015122624\n",
      "When time is : 1729, get best_k: 9.309618024643996 best_b: -35.99061028998685, and the loss is: 43.62201911872866\n",
      "When time is : 1730, get best_k: 9.309613034627057 best_b: -35.99057854790023, and the loss is: 43.622018086280754\n",
      "When time is : 1731, get best_k: 9.309608044730114 best_b: -35.990546806576916, and the loss is: 43.62201705388252\n",
      "When time is : 1732, get best_k: 9.309603054953165 best_b: -35.9905150660169, and the loss is: 43.622016021533895\n",
      "When time is : 1733, get best_k: 9.309598065296205 best_b: -35.99048332622015, and the loss is: 43.62201498923491\n",
      "When time is : 1734, get best_k: 9.309593075759233 best_b: -35.990451587186655, and the loss is: 43.62201395698564\n",
      "When time is : 1735, get best_k: 9.309588086342245 best_b: -35.990419848916396, and the loss is: 43.62201292478592\n",
      "When time is : 1736, get best_k: 9.30958309704524 best_b: -35.99038811140935, and the loss is: 43.62201189263592\n",
      "When time is : 1737, get best_k: 9.309578107868212 best_b: -35.99035637466551, and the loss is: 43.62201086053549\n",
      "When time is : 1738, get best_k: 9.30957311881116 best_b: -35.99032463868485, and the loss is: 43.622009828484764\n",
      "When time is : 1739, get best_k: 9.309568129874082 best_b: -35.99029290346735, and the loss is: 43.62200879648364\n",
      "When time is : 1740, get best_k: 9.309563141056973 best_b: -35.990261169012996, and the loss is: 43.62200776453216\n",
      "When time is : 1741, get best_k: 9.309558152359832 best_b: -35.990229435321766, and the loss is: 43.622006732630325\n",
      "When time is : 1742, get best_k: 9.309553163782656 best_b: -35.990197702393644, and the loss is: 43.62200570077814\n",
      "When time is : 1743, get best_k: 9.30954817532544 best_b: -35.99016597022861, and the loss is: 43.622004668975485\n",
      "When time is : 1744, get best_k: 9.309543186988185 best_b: -35.99013423882665, and the loss is: 43.62200363722255\n",
      "When time is : 1745, get best_k: 9.309538198770884 best_b: -35.99010250818774, and the loss is: 43.62200260551919\n",
      "When time is : 1746, get best_k: 9.309533210673536 best_b: -35.99007077831186, and the loss is: 43.622001573865454\n",
      "When time is : 1747, get best_k: 9.309528222696137 best_b: -35.990039049199, and the loss is: 43.62200054226132\n",
      "When time is : 1748, get best_k: 9.309523234838686 best_b: -35.99000732084914, and the loss is: 43.62199951070682\n",
      "When time is : 1749, get best_k: 9.30951824710118 best_b: -35.98997559326225, and the loss is: 43.62199847920192\n",
      "When time is : 1750, get best_k: 9.309513259483612 best_b: -35.989943866438324, and the loss is: 43.621997447746665\n",
      "When time is : 1751, get best_k: 9.309508271985985 best_b: -35.98991214037734, and the loss is: 43.62199641634098\n",
      "When time is : 1752, get best_k: 9.309503284608292 best_b: -35.989880415079284, and the loss is: 43.62199538498493\n",
      "When time is : 1753, get best_k: 9.309498297350533 best_b: -35.98984869054413, and the loss is: 43.62199435367847\n",
      "When time is : 1754, get best_k: 9.309493310212703 best_b: -35.98981696677186, and the loss is: 43.62199332242158\n",
      "When time is : 1755, get best_k: 9.3094883231948 best_b: -35.98978524376246, and the loss is: 43.62199229121434\n",
      "When time is : 1756, get best_k: 9.309483336296822 best_b: -35.989753521515915, and the loss is: 43.62199126005657\n",
      "When time is : 1757, get best_k: 9.309478349518763 best_b: -35.9897218000322, and the loss is: 43.62199022894853\n",
      "When time is : 1758, get best_k: 9.309473362860622 best_b: -35.9896900793113, and the loss is: 43.62198919789004\n",
      "When time is : 1759, get best_k: 9.309468376322398 best_b: -35.9896583593532, and the loss is: 43.621988166881124\n",
      "When time is : 1760, get best_k: 9.309463389904085 best_b: -35.98962664015787, and the loss is: 43.62198713592183\n",
      "When time is : 1761, get best_k: 9.309458403605683 best_b: -35.989594921725306, and the loss is: 43.621986105012056\n",
      "When time is : 1762, get best_k: 9.309453417427187 best_b: -35.98956320405548, and the loss is: 43.62198507415193\n",
      "When time is : 1763, get best_k: 9.309448431368596 best_b: -35.98953148714837, and the loss is: 43.62198404334129\n",
      "When time is : 1764, get best_k: 9.309443445429904 best_b: -35.98949977100396, and the loss is: 43.62198301258033\n",
      "When time is : 1765, get best_k: 9.309438459611112 best_b: -35.98946805562225, and the loss is: 43.62198198186886\n",
      "When time is : 1766, get best_k: 9.309433473912213 best_b: -35.9894363410032, and the loss is: 43.62198095120699\n",
      "When time is : 1767, get best_k: 9.309428488333207 best_b: -35.9894046271468, and the loss is: 43.621979920594725\n",
      "When time is : 1768, get best_k: 9.309423502874091 best_b: -35.98937291405302, and the loss is: 43.62197889003197\n",
      "When time is : 1769, get best_k: 9.309418517534862 best_b: -35.989341201721864, and the loss is: 43.621977859518815\n",
      "When time is : 1770, get best_k: 9.309413532315515 best_b: -35.989309490153296, and the loss is: 43.621976829055214\n",
      "When time is : 1771, get best_k: 9.30940854721605 best_b: -35.989277779347304, and the loss is: 43.62197579864114\n",
      "When time is : 1772, get best_k: 9.309403562236461 best_b: -35.98924606930387, and the loss is: 43.6219747682767\n",
      "When time is : 1773, get best_k: 9.309398577376749 best_b: -35.98921436002297, and the loss is: 43.621973737961774\n",
      "When time is : 1774, get best_k: 9.309393592636908 best_b: -35.98918265150459, and the loss is: 43.62197270769636\n",
      "When time is : 1775, get best_k: 9.309388608016937 best_b: -35.98915094374872, and the loss is: 43.62197167748052\n",
      "When time is : 1776, get best_k: 9.309383623516831 best_b: -35.98911923675533, and the loss is: 43.62197064731424\n",
      "When time is : 1777, get best_k: 9.30937863913659 best_b: -35.9890875305244, and the loss is: 43.62196961719752\n",
      "When time is : 1778, get best_k: 9.309373654876207 best_b: -35.98905582505592, and the loss is: 43.62196858713032\n",
      "When time is : 1779, get best_k: 9.309368670735683 best_b: -35.989024120349875, and the loss is: 43.62196755711265\n",
      "When time is : 1780, get best_k: 9.309363686715013 best_b: -35.988992416406234, and the loss is: 43.621966527144544\n",
      "When time is : 1781, get best_k: 9.309358702814196 best_b: -35.988960713224984, and the loss is: 43.62196549722595\n",
      "When time is : 1782, get best_k: 9.309353719033227 best_b: -35.98892901080611, and the loss is: 43.621964467356875\n",
      "When time is : 1783, get best_k: 9.309348735372104 best_b: -35.98889730914959, and the loss is: 43.62196343753741\n",
      "When time is : 1784, get best_k: 9.309343751830825 best_b: -35.98886560825541, and the loss is: 43.621962407767356\n",
      "When time is : 1785, get best_k: 9.309338768409386 best_b: -35.988833908123546, and the loss is: 43.62196137804692\n",
      "When time is : 1786, get best_k: 9.309333785107786 best_b: -35.98880220875398, and the loss is: 43.62196034837603\n",
      "When time is : 1787, get best_k: 9.30932880192602 best_b: -35.9887705101467, and the loss is: 43.62195931875453\n",
      "When time is : 1788, get best_k: 9.309323818864085 best_b: -35.98873881230168, and the loss is: 43.62195828918264\n",
      "When time is : 1789, get best_k: 9.309318835921978 best_b: -35.98870711521891, and the loss is: 43.621957259660235\n",
      "When time is : 1790, get best_k: 9.309313853099697 best_b: -35.98867541889836, and the loss is: 43.62195623018737\n",
      "When time is : 1791, get best_k: 9.30930887039724 best_b: -35.988643723340026, and the loss is: 43.62195520076406\n",
      "When time is : 1792, get best_k: 9.309303887814604 best_b: -35.988612028543876, and the loss is: 43.621954171390136\n",
      "When time is : 1793, get best_k: 9.309298905351785 best_b: -35.988580334509905, and the loss is: 43.62195314206584\n",
      "When time is : 1794, get best_k: 9.309293923008779 best_b: -35.98854864123808, and the loss is: 43.621952112790964\n",
      "When time is : 1795, get best_k: 9.309288940785585 best_b: -35.988516948728396, and the loss is: 43.6219510835656\n",
      "When time is : 1796, get best_k: 9.3092839586822 best_b: -35.98848525698083, and the loss is: 43.62195005438978\n",
      "When time is : 1797, get best_k: 9.30927897669862 best_b: -35.98845356599536, and the loss is: 43.621949025263426\n",
      "When time is : 1798, get best_k: 9.309273994834843 best_b: -35.98842187577197, and the loss is: 43.62194799618655\n",
      "When time is : 1799, get best_k: 9.309269013090868 best_b: -35.98839018631064, and the loss is: 43.621946967159204\n",
      "When time is : 1800, get best_k: 9.309264031466688 best_b: -35.98835849761135, and the loss is: 43.621945938181355\n",
      "When time is : 1801, get best_k: 9.309259049962302 best_b: -35.98832680967409, and the loss is: 43.621944909252974\n",
      "When time is : 1802, get best_k: 9.309254068577708 best_b: -35.98829512249884, and the loss is: 43.62194388037406\n",
      "When time is : 1803, get best_k: 9.309249087312903 best_b: -35.988263436085575, and the loss is: 43.62194285154463\n",
      "When time is : 1804, get best_k: 9.309244106167883 best_b: -35.98823175043428, and the loss is: 43.621941822764775\n",
      "When time is : 1805, get best_k: 9.309239125142646 best_b: -35.98820006554494, and the loss is: 43.621940794034266\n",
      "When time is : 1806, get best_k: 9.30923414423719 best_b: -35.98816838141753, and the loss is: 43.62193976535333\n",
      "When time is : 1807, get best_k: 9.309229163451509 best_b: -35.98813669805204, and the loss is: 43.621938736721795\n",
      "When time is : 1808, get best_k: 9.309224182785602 best_b: -35.98810501544845, and the loss is: 43.62193770813974\n",
      "When time is : 1809, get best_k: 9.309219202239467 best_b: -35.98807333360673, and the loss is: 43.621936679607174\n",
      "When time is : 1810, get best_k: 9.3092142218131 best_b: -35.988041652526874, and the loss is: 43.62193565112404\n",
      "When time is : 1811, get best_k: 9.3092092415065 best_b: -35.98800997220886, and the loss is: 43.62193462269045\n",
      "When time is : 1812, get best_k: 9.30920426131966 best_b: -35.98797829265267, and the loss is: 43.62193359430629\n",
      "When time is : 1813, get best_k: 9.309199281252582 best_b: -35.987946613858284, and the loss is: 43.621932565971484\n",
      "When time is : 1814, get best_k: 9.30919430130526 best_b: -35.987914935825685, and the loss is: 43.62193153768631\n",
      "When time is : 1815, get best_k: 9.309189321477692 best_b: -35.98788325855486, and the loss is: 43.62193050945047\n",
      "When time is : 1816, get best_k: 9.309184341769875 best_b: -35.987851582045785, and the loss is: 43.621929481264075\n",
      "When time is : 1817, get best_k: 9.309179362181807 best_b: -35.98781990629844, and the loss is: 43.6219284531272\n",
      "When time is : 1818, get best_k: 9.309174382713483 best_b: -35.98778823131281, and the loss is: 43.62192742503979\n",
      "When time is : 1819, get best_k: 9.309169403364901 best_b: -35.98775655708888, and the loss is: 43.62192639700174\n",
      "When time is : 1820, get best_k: 9.30916442413606 best_b: -35.98772488362662, and the loss is: 43.62192536901317\n",
      "When time is : 1821, get best_k: 9.309159445026955 best_b: -35.98769321092602, and the loss is: 43.62192434107401\n",
      "When time is : 1822, get best_k: 9.309154466037583 best_b: -35.98766153898706, and the loss is: 43.621923313184325\n",
      "When time is : 1823, get best_k: 9.309149487167943 best_b: -35.98762986780972, and the loss is: 43.62192228534407\n",
      "When time is : 1824, get best_k: 9.309144508418031 best_b: -35.98759819739399, and the loss is: 43.62192125755327\n",
      "When time is : 1825, get best_k: 9.309139529787844 best_b: -35.987566527739844, and the loss is: 43.62192022981189\n",
      "When time is : 1826, get best_k: 9.30913455127738 best_b: -35.98753485884726, and the loss is: 43.621919202119884\n",
      "When time is : 1827, get best_k: 9.309129572886635 best_b: -35.98750319071623, and the loss is: 43.621918174477315\n",
      "When time is : 1828, get best_k: 9.309124594615605 best_b: -35.987471523346734, and the loss is: 43.62191714688426\n",
      "When time is : 1829, get best_k: 9.30911961646429 best_b: -35.987439856738746, and the loss is: 43.62191611934054\n",
      "When time is : 1830, get best_k: 9.309114638432685 best_b: -35.98740819089225, and the loss is: 43.621915091846276\n",
      "When time is : 1831, get best_k: 9.309109660520788 best_b: -35.987376525807235, and the loss is: 43.621914064401444\n",
      "When time is : 1832, get best_k: 9.309104682728595 best_b: -35.98734486148368, and the loss is: 43.62191303700597\n",
      "When time is : 1833, get best_k: 9.309099705056106 best_b: -35.98731319792156, and the loss is: 43.62191200965993\n",
      "When time is : 1834, get best_k: 9.309094727503314 best_b: -35.98728153512086, and the loss is: 43.62191098236327\n",
      "When time is : 1835, get best_k: 9.309089750070221 best_b: -35.98724987308156, and the loss is: 43.621909955116074\n",
      "When time is : 1836, get best_k: 9.30908477275682 best_b: -35.98721821180364, and the loss is: 43.62190892791828\n",
      "When time is : 1837, get best_k: 9.309079795563111 best_b: -35.987186551287095, and the loss is: 43.621907900769806\n",
      "When time is : 1838, get best_k: 9.309074818489089 best_b: -35.987154891531894, and the loss is: 43.62190687367082\n",
      "When time is : 1839, get best_k: 9.30906984153475 best_b: -35.987123232538025, and the loss is: 43.62190584662118\n",
      "When time is : 1840, get best_k: 9.309064864700094 best_b: -35.98709157430547, and the loss is: 43.621904819621015\n",
      "When time is : 1841, get best_k: 9.309059887985118 best_b: -35.9870599168342, and the loss is: 43.62190379267014\n",
      "When time is : 1842, get best_k: 9.309054911389817 best_b: -35.987028260124205, and the loss is: 43.6219027657687\n",
      "When time is : 1843, get best_k: 9.30904993491419 best_b: -35.98699660417547, and the loss is: 43.6219017389167\n",
      "When time is : 1844, get best_k: 9.309044958558234 best_b: -35.98696494898797, and the loss is: 43.621900712113955\n",
      "When time is : 1845, get best_k: 9.309039982321945 best_b: -35.98693329456169, and the loss is: 43.621899685360695\n",
      "When time is : 1846, get best_k: 9.30903500620532 best_b: -35.98690164089661, and the loss is: 43.62189865865678\n",
      "When time is : 1847, get best_k: 9.309030030208358 best_b: -35.98686998799272, and the loss is: 43.62189763200227\n",
      "When time is : 1848, get best_k: 9.309025054331055 best_b: -35.98683833584999, and the loss is: 43.62189660539709\n",
      "When time is : 1849, get best_k: 9.309020078573408 best_b: -35.986806684468405, and the loss is: 43.62189557884137\n",
      "When time is : 1850, get best_k: 9.309015102935414 best_b: -35.98677503384795, and the loss is: 43.62189455233493\n",
      "When time is : 1851, get best_k: 9.30901012741707 best_b: -35.9867433839886, and the loss is: 43.6218935258779\n",
      "When time is : 1852, get best_k: 9.309005152018372 best_b: -35.98671173489035, and the loss is: 43.62189249947024\n",
      "When time is : 1853, get best_k: 9.30900017673932 best_b: -35.986680086553164, and the loss is: 43.621891473111944\n",
      "When time is : 1854, get best_k: 9.30899520157991 best_b: -35.986648438977035, and the loss is: 43.62189044680295\n",
      "When time is : 1855, get best_k: 9.308990226540137 best_b: -35.986616792161946, and the loss is: 43.6218894205434\n",
      "When time is : 1856, get best_k: 9.308985251620001 best_b: -35.98658514610787, and the loss is: 43.621888394333155\n",
      "When time is : 1857, get best_k: 9.308980276819499 best_b: -35.9865535008148, and the loss is: 43.621887368172274\n",
      "When time is : 1858, get best_k: 9.308975302138625 best_b: -35.98652185628271, and the loss is: 43.62188634206073\n",
      "When time is : 1859, get best_k: 9.30897032757738 best_b: -35.986490212511576, and the loss is: 43.62188531599851\n",
      "When time is : 1860, get best_k: 9.30896535313576 best_b: -35.986458569501394, and the loss is: 43.621884289985715\n",
      "When time is : 1861, get best_k: 9.30896037881376 best_b: -35.98642692725214, and the loss is: 43.621883264022294\n",
      "When time is : 1862, get best_k: 9.308955404611378 best_b: -35.98639528576379, and the loss is: 43.62188223810812\n",
      "When time is : 1863, get best_k: 9.308950430528613 best_b: -35.986363645036334, and the loss is: 43.6218812122433\n",
      "When time is : 1864, get best_k: 9.30894545656546 best_b: -35.98633200506975, and the loss is: 43.621880186427866\n",
      "When time is : 1865, get best_k: 9.308940482721919 best_b: -35.98630036586401, and the loss is: 43.62187916066175\n",
      "When time is : 1866, get best_k: 9.308935508997983 best_b: -35.98626872741911, and the loss is: 43.62187813494494\n",
      "When time is : 1867, get best_k: 9.308930535393653 best_b: -35.98623708973503, and the loss is: 43.62187710927749\n",
      "When time is : 1868, get best_k: 9.308925561908923 best_b: -35.986205452811745, and the loss is: 43.621876083659394\n",
      "When time is : 1869, get best_k: 9.308920588543792 best_b: -35.98617381664924, and the loss is: 43.6218750580906\n",
      "When time is : 1870, get best_k: 9.308915615298258 best_b: -35.9861421812475, and the loss is: 43.62187403257109\n",
      "When time is : 1871, get best_k: 9.308910642172314 best_b: -35.986110546606504, and the loss is: 43.62187300710092\n",
      "When time is : 1872, get best_k: 9.308905669165961 best_b: -35.986078912726235, and the loss is: 43.62187198168005\n",
      "When time is : 1873, get best_k: 9.308900696279196 best_b: -35.98604727960667, and the loss is: 43.62187095630854\n",
      "When time is : 1874, get best_k: 9.308895723512014 best_b: -35.9860156472478, and the loss is: 43.62186993098634\n",
      "When time is : 1875, get best_k: 9.308890750864414 best_b: -35.98598401564959, and the loss is: 43.62186890571346\n",
      "When time is : 1876, get best_k: 9.308885778336393 best_b: -35.98595238481204, and the loss is: 43.62186788048987\n",
      "When time is : 1877, get best_k: 9.308880805927947 best_b: -35.98592075473512, and the loss is: 43.62186685531556\n",
      "When time is : 1878, get best_k: 9.308875833639073 best_b: -35.985889125418815, and the loss is: 43.62186583019057\n",
      "When time is : 1879, get best_k: 9.308870861469769 best_b: -35.98585749686311, and the loss is: 43.6218648051149\n",
      "When time is : 1880, get best_k: 9.308865889420032 best_b: -35.98582586906798, and the loss is: 43.62186378008852\n",
      "When time is : 1881, get best_k: 9.30886091748986 best_b: -35.985794242033414, and the loss is: 43.62186275511146\n",
      "When time is : 1882, get best_k: 9.308855945679248 best_b: -35.98576261575939, and the loss is: 43.621861730183674\n",
      "When time is : 1883, get best_k: 9.308850973988195 best_b: -35.98573099024589, and the loss is: 43.62186070530515\n",
      "When time is : 1884, get best_k: 9.308846002416697 best_b: -35.9856993654929, and the loss is: 43.62185968047591\n",
      "When time is : 1885, get best_k: 9.308841030964752 best_b: -35.98566774150039, and the loss is: 43.62185865569604\n",
      "When time is : 1886, get best_k: 9.308836059632355 best_b: -35.98563611826835, and the loss is: 43.62185763096538\n",
      "When time is : 1887, get best_k: 9.308831088419506 best_b: -35.985604495796764, and the loss is: 43.62185660628404\n",
      "When time is : 1888, get best_k: 9.3088261173262 best_b: -35.98557287408561, and the loss is: 43.62185558165204\n",
      "When time is : 1889, get best_k: 9.308821146352436 best_b: -35.985541253134876, and the loss is: 43.621854557069184\n",
      "When time is : 1890, get best_k: 9.30881617549821 best_b: -35.985509632944535, and the loss is: 43.62185353253572\n",
      "When time is : 1891, get best_k: 9.308811204763519 best_b: -35.985478013514566, and the loss is: 43.62185250805146\n",
      "When time is : 1892, get best_k: 9.30880623414836 best_b: -35.98544639484496, and the loss is: 43.6218514836165\n",
      "When time is : 1893, get best_k: 9.30880126365273 best_b: -35.9854147769357, and the loss is: 43.621850459230764\n",
      "When time is : 1894, get best_k: 9.308796293276629 best_b: -35.98538315978676, and the loss is: 43.62184943489437\n",
      "When time is : 1895, get best_k: 9.30879132302005 best_b: -35.98535154339812, and the loss is: 43.621848410607214\n",
      "When time is : 1896, get best_k: 9.308786352882992 best_b: -35.985319927769766, and the loss is: 43.621847386369325\n",
      "When time is : 1897, get best_k: 9.308781382865451 best_b: -35.98528831290168, and the loss is: 43.62184636218063\n",
      "When time is : 1898, get best_k: 9.308776412967426 best_b: -35.98525669879385, and the loss is: 43.62184533804127\n",
      "When time is : 1899, get best_k: 9.308771443188913 best_b: -35.985225085446245, and the loss is: 43.621844313951165\n",
      "When time is : 1900, get best_k: 9.30876647352991 best_b: -35.98519347285886, and the loss is: 43.62184328991027\n",
      "When time is : 1901, get best_k: 9.308761503990414 best_b: -35.98516186103167, and the loss is: 43.62184226591862\n",
      "When time is : 1902, get best_k: 9.30875653457042 best_b: -35.985130249964655, and the loss is: 43.621841241976206\n",
      "When time is : 1903, get best_k: 9.308751565269928 best_b: -35.9850986396578, and the loss is: 43.62184021808311\n",
      "When time is : 1904, get best_k: 9.308746596088934 best_b: -35.98506703011108, and the loss is: 43.621839194239186\n",
      "When time is : 1905, get best_k: 9.308741627027434 best_b: -35.98503542132449, and the loss is: 43.621838170444576\n",
      "When time is : 1906, get best_k: 9.308736658085426 best_b: -35.985003813298, and the loss is: 43.621837146699114\n",
      "When time is : 1907, get best_k: 9.308731689262908 best_b: -35.98497220603159, and the loss is: 43.62183612300296\n",
      "When time is : 1908, get best_k: 9.308726720559877 best_b: -35.98494059952525, and the loss is: 43.62183509935604\n",
      "When time is : 1909, get best_k: 9.308721751976329 best_b: -35.984908993778966, and the loss is: 43.62183407575833\n",
      "When time is : 1910, get best_k: 9.308716783512262 best_b: -35.984877388792704, and the loss is: 43.62183305220983\n",
      "When time is : 1911, get best_k: 9.308711815167673 best_b: -35.98484578456646, and the loss is: 43.621832028710564\n",
      "When time is : 1912, get best_k: 9.308706846942558 best_b: -35.984814181100205, and the loss is: 43.62183100526056\n",
      "When time is : 1913, get best_k: 9.308701878836915 best_b: -35.984782578393926, and the loss is: 43.62182998185977\n",
      "When time is : 1914, get best_k: 9.308696910850742 best_b: -35.98475097644761, and the loss is: 43.621828958508125\n",
      "When time is : 1915, get best_k: 9.308691942984035 best_b: -35.98471937526123, and the loss is: 43.62182793520576\n",
      "When time is : 1916, get best_k: 9.30868697523679 best_b: -35.98468777483477, and the loss is: 43.62182691195259\n",
      "When time is : 1917, get best_k: 9.308682007609008 best_b: -35.98465617516821, and the loss is: 43.62182588874864\n",
      "When time is : 1918, get best_k: 9.308677040100681 best_b: -35.98462457626154, and the loss is: 43.62182486559388\n",
      "When time is : 1919, get best_k: 9.308672072711811 best_b: -35.98459297811473, and the loss is: 43.62182384248835\n",
      "When time is : 1920, get best_k: 9.308667105442392 best_b: -35.984561380727776, and the loss is: 43.62182281943206\n",
      "When time is : 1921, get best_k: 9.308662138292423 best_b: -35.984529784100644, and the loss is: 43.62182179642494\n",
      "When time is : 1922, get best_k: 9.308657171261899 best_b: -35.984498188233324, and the loss is: 43.62182077346699\n",
      "When time is : 1923, get best_k: 9.30865220435082 best_b: -35.9844665931258, and the loss is: 43.621819750558245\n",
      "When time is : 1924, get best_k: 9.30864723755918 best_b: -35.98443499877805, and the loss is: 43.621818727698766\n",
      "When time is : 1925, get best_k: 9.308642270886978 best_b: -35.98440340519006, and the loss is: 43.62181770488841\n",
      "When time is : 1926, get best_k: 9.30863730433421 best_b: -35.9843718123618, and the loss is: 43.621816682127246\n",
      "When time is : 1927, get best_k: 9.308632337900875 best_b: -35.98434022029326, and the loss is: 43.621815659415326\n",
      "When time is : 1928, get best_k: 9.308627371586967 best_b: -35.98430862898443, and the loss is: 43.62181463675252\n",
      "When time is : 1929, get best_k: 9.308622405392486 best_b: -35.98427703843528, and the loss is: 43.621813614138965\n",
      "When time is : 1930, get best_k: 9.308617439317429 best_b: -35.984245448645794, and the loss is: 43.62181259157457\n",
      "When time is : 1931, get best_k: 9.30861247336179 best_b: -35.984213859615956, and the loss is: 43.621811569059346\n",
      "When time is : 1932, get best_k: 9.30860750752557 best_b: -35.984182271345745, and the loss is: 43.6218105465933\n",
      "When time is : 1933, get best_k: 9.308602541808765 best_b: -35.984150683835146, and the loss is: 43.621809524176406\n",
      "When time is : 1934, get best_k: 9.308597576211373 best_b: -35.98411909708414, and the loss is: 43.6218085018087\n",
      "When time is : 1935, get best_k: 9.308592610733388 best_b: -35.9840875110927, and the loss is: 43.62180747949013\n",
      "When time is : 1936, get best_k: 9.308587645374809 best_b: -35.98405592586082, and the loss is: 43.62180645722076\n",
      "When time is : 1937, get best_k: 9.308582680135633 best_b: -35.98402434138848, and the loss is: 43.62180543500055\n",
      "When time is : 1938, get best_k: 9.308577715015858 best_b: -35.98399275767566, and the loss is: 43.6218044128295\n",
      "When time is : 1939, get best_k: 9.30857275001548 best_b: -35.98396117472234, and the loss is: 43.62180339070762\n",
      "When time is : 1940, get best_k: 9.308567785134498 best_b: -35.9839295925285, and the loss is: 43.621802368634924\n",
      "When time is : 1941, get best_k: 9.308562820372906 best_b: -35.98389801109412, and the loss is: 43.621801346611356\n",
      "When time is : 1942, get best_k: 9.308557855730703 best_b: -35.98386643041919, and the loss is: 43.62180032463695\n",
      "When time is : 1943, get best_k: 9.308552891207885 best_b: -35.98383485050369, and the loss is: 43.621799302711665\n",
      "When time is : 1944, get best_k: 9.30854792680445 best_b: -35.9838032713476, and the loss is: 43.62179828083558\n",
      "When time is : 1945, get best_k: 9.308542962520397 best_b: -35.983771692950896, and the loss is: 43.62179725900863\n",
      "When time is : 1946, get best_k: 9.30853799835572 best_b: -35.983740115313566, and the loss is: 43.621796237230804\n",
      "When time is : 1947, get best_k: 9.308533034310416 best_b: -35.98370853843559, and the loss is: 43.621795215502125\n",
      "When time is : 1948, get best_k: 9.308528070384485 best_b: -35.983676962316956, and the loss is: 43.6217941938226\n",
      "When time is : 1949, get best_k: 9.308523106577923 best_b: -35.98364538695763, and the loss is: 43.621793172192135\n",
      "When time is : 1950, get best_k: 9.308518142890726 best_b: -35.98361381235761, and the loss is: 43.62179215061088\n",
      "When time is : 1951, get best_k: 9.308513179322892 best_b: -35.983582238516874, and the loss is: 43.621791129078716\n",
      "When time is : 1952, get best_k: 9.308508215874419 best_b: -35.9835506654354, and the loss is: 43.62179010759569\n",
      "When time is : 1953, get best_k: 9.308503252545302 best_b: -35.98351909311317, and the loss is: 43.621789086161826\n",
      "When time is : 1954, get best_k: 9.30849828933554 best_b: -35.98348752155017, and the loss is: 43.62178806477705\n",
      "When time is : 1955, get best_k: 9.30849332624513 best_b: -35.983455950746375, and the loss is: 43.621787043441465\n",
      "When time is : 1956, get best_k: 9.30848836327407 best_b: -35.98342438070177, and the loss is: 43.62178602215498\n",
      "When time is : 1957, get best_k: 9.308483400422352 best_b: -35.98339281141634, and the loss is: 43.62178500091753\n",
      "When time is : 1958, get best_k: 9.30847843768998 best_b: -35.983361242890055, and the loss is: 43.62178397972924\n",
      "When time is : 1959, get best_k: 9.308473475076946 best_b: -35.98332967512291, and the loss is: 43.621782958590074\n",
      "When time is : 1960, get best_k: 9.30846851258325 best_b: -35.98329810811489, and the loss is: 43.621781937500025\n",
      "When time is : 1961, get best_k: 9.308463550208888 best_b: -35.98326654186596, and the loss is: 43.62178091645903\n",
      "When time is : 1962, get best_k: 9.308458587953856 best_b: -35.98323497637611, and the loss is: 43.62177989546719\n",
      "When time is : 1963, get best_k: 9.308453625818153 best_b: -35.98320341164533, and the loss is: 43.62177887452445\n",
      "When time is : 1964, get best_k: 9.308448663801776 best_b: -35.98317184767359, and the loss is: 43.621777853630824\n",
      "When time is : 1965, get best_k: 9.308443701904721 best_b: -35.98314028446087, and the loss is: 43.62177683278627\n",
      "When time is : 1966, get best_k: 9.308438740126988 best_b: -35.98310872200717, and the loss is: 43.62177581199081\n",
      "When time is : 1967, get best_k: 9.30843377846857 best_b: -35.98307716031245, and the loss is: 43.621774791244455\n",
      "When time is : 1968, get best_k: 9.308428816929467 best_b: -35.9830455993767, and the loss is: 43.62177377054721\n",
      "When time is : 1969, get best_k: 9.308423855509675 best_b: -35.98301403919991, and the loss is: 43.62177274989901\n",
      "When time is : 1970, get best_k: 9.308418894209192 best_b: -35.98298247978205, and the loss is: 43.62177172929996\n",
      "When time is : 1971, get best_k: 9.308413933028014 best_b: -35.98295092112311, and the loss is: 43.62177070874995\n",
      "When time is : 1972, get best_k: 9.308408971966138 best_b: -35.98291936322307, and the loss is: 43.62176968824907\n",
      "When time is : 1973, get best_k: 9.308404011023562 best_b: -35.982887806081905, and the loss is: 43.621768667797156\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 1974, get best_k: 9.308399050200283 best_b: -35.9828562496996, and the loss is: 43.621767647394414\n",
      "When time is : 1975, get best_k: 9.308394089496298 best_b: -35.98282469407614, and the loss is: 43.621766627040714\n",
      "When time is : 1976, get best_k: 9.308389128911605 best_b: -35.98279313921151, and the loss is: 43.62176560673609\n",
      "When time is : 1977, get best_k: 9.3083841684462 best_b: -35.982761585105685, and the loss is: 43.621764586480566\n",
      "When time is : 1978, get best_k: 9.30837920810008 best_b: -35.98273003175865, and the loss is: 43.621763566274076\n",
      "When time is : 1979, get best_k: 9.308374247873243 best_b: -35.98269847917038, and the loss is: 43.6217625461167\n",
      "When time is : 1980, get best_k: 9.308369287765686 best_b: -35.982666927340865, and the loss is: 43.62176152600836\n",
      "When time is : 1981, get best_k: 9.308364327777404 best_b: -35.98263537627008, and the loss is: 43.62176050594902\n",
      "When time is : 1982, get best_k: 9.308359367908398 best_b: -35.982603825958016, and the loss is: 43.621759485938824\n",
      "When time is : 1983, get best_k: 9.308354408158662 best_b: -35.982572276404646, and the loss is: 43.621758465977635\n",
      "When time is : 1984, get best_k: 9.308349448528194 best_b: -35.98254072760996, and the loss is: 43.62175744606554\n",
      "When time is : 1985, get best_k: 9.308344489016992 best_b: -35.98250917957393, and the loss is: 43.62175642620248\n",
      "When time is : 1986, get best_k: 9.308339529625053 best_b: -35.98247763229655, and the loss is: 43.62175540638845\n",
      "When time is : 1987, get best_k: 9.308334570352374 best_b: -35.98244608577779, and the loss is: 43.621754386623465\n",
      "When time is : 1988, get best_k: 9.30832961119895 best_b: -35.982414540017636, and the loss is: 43.62175336690752\n",
      "When time is : 1989, get best_k: 9.30832465216478 best_b: -35.982382995016074, and the loss is: 43.62175234724065\n",
      "When time is : 1990, get best_k: 9.308319693249862 best_b: -35.98235145077308, and the loss is: 43.62175132762285\n",
      "When time is : 1991, get best_k: 9.308314734454191 best_b: -35.982319907288634, and the loss is: 43.62175030805406\n",
      "When time is : 1992, get best_k: 9.308309775777767 best_b: -35.98228836456272, and the loss is: 43.62174928853423\n",
      "When time is : 1993, get best_k: 9.308304817220584 best_b: -35.982256822595325, and the loss is: 43.62174826906351\n",
      "When time is : 1994, get best_k: 9.308299858782641 best_b: -35.98222528138643, and the loss is: 43.621747249641786\n",
      "When time is : 1995, get best_k: 9.308294900463935 best_b: -35.982193740936005, and the loss is: 43.62174623026907\n",
      "When time is : 1996, get best_k: 9.308289942264462 best_b: -35.982162201244044, and the loss is: 43.62174521094542\n",
      "When time is : 1997, get best_k: 9.30828498418422 best_b: -35.982130662310524, and the loss is: 43.62174419167082\n",
      "When time is : 1998, get best_k: 9.308280026223207 best_b: -35.98209912413543, and the loss is: 43.62174317244519\n",
      "When time is : 1999, get best_k: 9.308275068381418 best_b: -35.98206758671874, and the loss is: 43.62174215326864\n"
     ]
    }
   ],
   "source": [
    "trying_times = 2000\n",
    "\n",
    "min_loss = float('inf')\n",
    "\n",
    "current_k = random.random() * 200 - 100\n",
    "current_b = random.random() * 200 - 100\n",
    "\n",
    "learning_rate = 1e-3\n",
    "\n",
    "update_time = 0\n",
    "\n",
    "for i in range(trying_times):\n",
    "\n",
    "    price_by_k_and_b = [price(r, current_k, current_b) for r in X_rm]\n",
    "\n",
    "    current_loss = loss(y, price_by_k_and_b)\n",
    "\n",
    "    if current_loss < min_loss:  # performance became better\n",
    "        min_loss = current_loss\n",
    "        print(\n",
    "            'When time is : {}, get best_k: {} best_b: {}, and the loss is: {}'\n",
    "            .format(i, current_k, current_b, min_loss))\n",
    "\n",
    "    k_gradient = partial_k(X_rm, y, price_by_k_and_b)\n",
    "\n",
    "    b_gradient = partial_b(X_rm, y, price_by_k_and_b)\n",
    "\n",
    "    current_k = current_k + (-1 * k_gradient) * learning_rate\n",
    "    current_b = current_b + (-1 * b_gradient) * learning_rate"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.collections.PathCollection at 0x7fa067b5e1d0>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD2CAYAAAD24G0VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGli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+gBJYWInAS8xRjzQKPHkgTGmK9ZnyPwGPCNBg8pCT4I3FGKbX6TiLRiLPeXgb83xpwEHCYiJwfdUIW7hIicCuwFftfosSTEIuBsEXlSRG4RkeZvWxcBEclRFLIXReQvGz2eJBGRbmCGMaa/0WNJgNeAY0WkC5gFvNzg8STB24Gfl35+BZgSdEMVbkBEOoEvACsbPZYEeQo43RhzApAD/qLB40mKi4D/AK4DThCRTzV4PEnySeBrjR5EQmwEjgA+Dfw/YFdjh5MI9wCrS5beu4FHgm6owl1kJXCzMWao0QNJkK3GmP8s/dwPvK2Rg0mQBcB6Y8zvgO8CpzR4PIkgIhmK5/bTBg8lKVYDHzfGXA08B/yPBo8ndowx1wA/BP4GuM0Y83rQbVW4i5wOfFJEfgocJyLfbPB4kuA7IjJfRLLAUuDpRg8oIX4FHFX6uYd0FTgLw0nAE6Z1EzGmAnNLf6/vBFr1PLcAhwM3hNlIE3CqEJGflhZ9WgoRORa4ExDgfmPMVQ0eUiKIyJuAW4EZFC2h840xg40dVfyIyJeAfmPMfY0eSxKIyAnAtyjaJf8OnBtmRpoWRGQt8CtjzHdCbafCrSiKki7UKlEURUkZKtyKoigpQ4VbURQlZahwK4qipAwVbkVRlJShwq0oipIy/j8ew2Fx7qabhwAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "k = current_k\n",
    "b = current_b\n",
    "price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "\n",
    "draw_rm_and_price()\n",
    "plt.scatter(X_rm, price_by_random_k_and_b)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**更换损失函数**\n",
    "$loss = \\frac{1}{n}\\sum{|y_i - \\hat{y_i}|} = \\frac{1}{n}\\sum{|kx_i+b- \\hat{y_i}|}$"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [],
   "source": [
    "def loss(x, y, y_hat):\n",
    "    return sum(abs(y_hat_i - y_i) for y_hat_i, y_i in zip(y_hat, y)) / len(y)\n",
    "\n",
    "\n",
    "def partial_b(x, y, y_hat):\n",
    "    return sum([\n",
    "        1 if y_hat_i - y_i >= 0 else -1\n",
    "        for y_i, y_hat_i in zip(list(y), list(y_hat))\n",
    "    ]) / len(x)\n",
    "\n",
    "\n",
    "def partial_k(x, y, y_hat):\n",
    "    return sum([\n",
    "        x_i if y_hat_i - y_i >= 0 else -1 * x_i\n",
    "        for x_i, y_i, y_hat_i in zip(list(x), list(y), list(y_hat))\n",
    "    ]) / len(x)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 0, get best_k: 1 best_b: -5, and the loss is: 21.248171936758926\n",
      "When time is : 1, get best_k: 1.0062846343873517 best_b: -4.999, and the loss is: 21.2076753073762\n",
      "When time is : 2, get best_k: 1.0125692687747034 best_b: -4.997999999999999, and the loss is: 21.16717867799357\n",
      "When time is : 3, get best_k: 1.0188539031620552 best_b: -4.996999999999999, and the loss is: 21.12668204861083\n",
      "When time is : 4, get best_k: 1.0251385375494069 best_b: -4.995999999999999, and the loss is: 21.086185419228148\n",
      "When time is : 5, get best_k: 1.0314231719367586 best_b: -4.994999999999998, and the loss is: 21.045688789845492\n",
      "When time is : 6, get best_k: 1.0377078063241103 best_b: -4.993999999999998, and the loss is: 21.005192160462794\n",
      "When time is : 7, get best_k: 1.043992440711462 best_b: -4.992999999999998, and the loss is: 20.96469553108008\n",
      "When time is : 8, get best_k: 1.0502770750988137 best_b: -4.991999999999997, and the loss is: 20.924198901697405\n",
      "When time is : 9, get best_k: 1.0565617094861655 best_b: -4.990999999999997, and the loss is: 20.88370227231475\n",
      "When time is : 10, get best_k: 1.0628463438735172 best_b: -4.989999999999997, and the loss is: 20.84320564293207\n",
      "When time is : 11, get best_k: 1.069130978260869 best_b: -4.988999999999996, and the loss is: 20.802709013549382\n",
      "When time is : 12, get best_k: 1.0754156126482206 best_b: -4.987999999999996, and the loss is: 20.762212384166695\n",
      "When time is : 13, get best_k: 1.0817002470355723 best_b: -4.986999999999996, and the loss is: 20.721715754784015\n",
      "When time is : 14, get best_k: 1.087984881422924 best_b: -4.985999999999995, and the loss is: 20.68121912540132\n",
      "When time is : 15, get best_k: 1.0942695158102758 best_b: -4.984999999999995, and the loss is: 20.640722496018615\n",
      "When time is : 16, get best_k: 1.1005541501976275 best_b: -4.983999999999995, and the loss is: 20.600225866635927\n",
      "When time is : 17, get best_k: 1.1068387845849792 best_b: -4.982999999999994, and the loss is: 20.55972923725324\n",
      "When time is : 18, get best_k: 1.113123418972331 best_b: -4.981999999999994, and the loss is: 20.519232607870585\n",
      "When time is : 19, get best_k: 1.1194080533596826 best_b: -4.980999999999994, and the loss is: 20.47873597848789\n",
      "When time is : 20, get best_k: 1.1256926877470343 best_b: -4.979999999999993, and the loss is: 20.438239349105235\n",
      "When time is : 21, get best_k: 1.131977322134386 best_b: -4.978999999999993, and the loss is: 20.397742719722512\n",
      "When time is : 22, get best_k: 1.1382619565217378 best_b: -4.977999999999993, and the loss is: 20.35724609033985\n",
      "When time is : 23, get best_k: 1.1445465909090895 best_b: -4.976999999999992, and the loss is: 20.31674946095714\n",
      "When time is : 24, get best_k: 1.1508312252964412 best_b: -4.975999999999992, and the loss is: 20.27625283157446\n",
      "When time is : 25, get best_k: 1.157115859683793 best_b: -4.974999999999992, and the loss is: 20.23575620219179\n",
      "When time is : 26, get best_k: 1.1634004940711447 best_b: -4.973999999999991, and the loss is: 20.19525957280912\n",
      "When time is : 27, get best_k: 1.1696851284584964 best_b: -4.972999999999991, and the loss is: 20.154762943426416\n",
      "When time is : 28, get best_k: 1.175969762845848 best_b: -4.971999999999991, and the loss is: 20.11426631404373\n",
      "When time is : 29, get best_k: 1.1822543972331998 best_b: -4.97099999999999, and the loss is: 20.073769684661038\n",
      "When time is : 30, get best_k: 1.1885390316205515 best_b: -4.96999999999999, and the loss is: 20.033273055278332\n",
      "When time is : 31, get best_k: 1.1948236660079032 best_b: -4.96899999999999, and the loss is: 19.99277642589569\n",
      "When time is : 32, get best_k: 1.201108300395255 best_b: -4.967999999999989, and the loss is: 19.95227979651298\n",
      "When time is : 33, get best_k: 1.2073929347826067 best_b: -4.966999999999989, and the loss is: 19.911783167130302\n",
      "When time is : 34, get best_k: 1.2136775691699584 best_b: -4.965999999999989, and the loss is: 19.871286537747633\n",
      "When time is : 35, get best_k: 1.21996220355731 best_b: -4.964999999999988, and the loss is: 19.830789908364938\n",
      "When time is : 36, get best_k: 1.2262468379446618 best_b: -4.963999999999988, and the loss is: 19.79029327898225\n",
      "When time is : 37, get best_k: 1.2325314723320135 best_b: -4.962999999999988, and the loss is: 19.749796649599556\n",
      "When time is : 38, get best_k: 1.2388161067193653 best_b: -4.961999999999987, and the loss is: 19.70930002021688\n",
      "When time is : 39, get best_k: 1.245100741106717 best_b: -4.960999999999987, and the loss is: 19.668803390834206\n",
      "When time is : 40, get best_k: 1.2513853754940687 best_b: -4.959999999999987, and the loss is: 19.62830676145156\n",
      "When time is : 41, get best_k: 1.2576700098814204 best_b: -4.958999999999986, and the loss is: 19.58781013206882\n",
      "When time is : 42, get best_k: 1.2639546442687721 best_b: -4.957999999999986, and the loss is: 19.54731350268613\n",
      "When time is : 43, get best_k: 1.2702392786561238 best_b: -4.956999999999986, and the loss is: 19.50681687330345\n",
      "When time is : 44, get best_k: 1.2765239130434756 best_b: -4.955999999999985, and the loss is: 19.46632024392077\n",
      "When time is : 45, get best_k: 1.2828085474308273 best_b: -4.954999999999985, and the loss is: 19.425823614538096\n",
      "When time is : 46, get best_k: 1.289093181818179 best_b: -4.953999999999985, and the loss is: 19.385326985155416\n",
      "When time is : 47, get best_k: 1.2953778162055307 best_b: -4.952999999999984, and the loss is: 19.34483035577269\n",
      "When time is : 48, get best_k: 1.3016624505928824 best_b: -4.951999999999984, and the loss is: 19.304333726390027\n",
      "When time is : 49, get best_k: 1.3079470849802342 best_b: -4.950999999999984, and the loss is: 19.263837097007364\n",
      "When time is : 50, get best_k: 1.3142317193675859 best_b: -4.949999999999983, and the loss is: 19.223340467624688\n",
      "When time is : 51, get best_k: 1.3205163537549376 best_b: -4.948999999999983, and the loss is: 19.18284383824199\n",
      "When time is : 52, get best_k: 1.3268009881422893 best_b: -4.947999999999983, and the loss is: 19.142347208859285\n",
      "When time is : 53, get best_k: 1.333085622529641 best_b: -4.946999999999982, and the loss is: 19.101850579476604\n",
      "When time is : 54, get best_k: 1.3393702569169927 best_b: -4.945999999999982, and the loss is: 19.061353950093963\n",
      "When time is : 55, get best_k: 1.3456548913043445 best_b: -4.944999999999982, and the loss is: 19.02085732071122\n",
      "When time is : 56, get best_k: 1.3519395256916962 best_b: -4.943999999999981, and the loss is: 18.980360691328546\n",
      "When time is : 57, get best_k: 1.358224160079048 best_b: -4.942999999999981, and the loss is: 18.939864061945887\n",
      "When time is : 58, get best_k: 1.3645087944663996 best_b: -4.941999999999981, and the loss is: 18.8993674325632\n",
      "When time is : 59, get best_k: 1.3707934288537513 best_b: -4.94099999999998, and the loss is: 18.85887080318049\n",
      "When time is : 60, get best_k: 1.377078063241103 best_b: -4.93999999999998, and the loss is: 18.818374173797835\n",
      "When time is : 61, get best_k: 1.3833626976284548 best_b: -4.93899999999998, and the loss is: 18.77787754441515\n",
      "When time is : 62, get best_k: 1.3896473320158065 best_b: -4.937999999999979, and the loss is: 18.73738091503247\n",
      "When time is : 63, get best_k: 1.3959319664031582 best_b: -4.936999999999979, and the loss is: 18.696884285649777\n",
      "When time is : 64, get best_k: 1.40221660079051 best_b: -4.935999999999979, and the loss is: 18.656387656267093\n",
      "When time is : 65, get best_k: 1.4085012351778616 best_b: -4.934999999999978, and the loss is: 18.615891026884405\n",
      "When time is : 66, get best_k: 1.4147858695652133 best_b: -4.933999999999978, and the loss is: 18.575394397501746\n",
      "When time is : 67, get best_k: 1.421070503952565 best_b: -4.932999999999978, and the loss is: 18.534897768119052\n",
      "When time is : 68, get best_k: 1.4273551383399168 best_b: -4.931999999999977, and the loss is: 18.494401138736347\n",
      "When time is : 69, get best_k: 1.4336397727272685 best_b: -4.930999999999977, and the loss is: 18.453904509353684\n",
      "When time is : 70, get best_k: 1.4399244071146202 best_b: -4.929999999999977, and the loss is: 18.41340787997098\n",
      "When time is : 71, get best_k: 1.446209041501972 best_b: -4.928999999999976, and the loss is: 18.372911250588306\n",
      "When time is : 72, get best_k: 1.4524936758893237 best_b: -4.927999999999976, and the loss is: 18.332414621205622\n",
      "When time is : 73, get best_k: 1.4587783102766754 best_b: -4.926999999999976, and the loss is: 18.29191799182292\n",
      "When time is : 74, get best_k: 1.465062944664027 best_b: -4.925999999999975, and the loss is: 18.251421362440247\n",
      "When time is : 75, get best_k: 1.4713475790513788 best_b: -4.924999999999975, and the loss is: 18.210924733057567\n",
      "When time is : 76, get best_k: 1.4776322134387305 best_b: -4.923999999999975, and the loss is: 18.17042810367487\n",
      "When time is : 77, get best_k: 1.4839168478260822 best_b: -4.922999999999974, and the loss is: 18.129931474292192\n",
      "When time is : 78, get best_k: 1.490201482213434 best_b: -4.921999999999974, and the loss is: 18.08943484490949\n",
      "When time is : 79, get best_k: 1.4964861166007857 best_b: -4.920999999999974, and the loss is: 18.048938215526814\n",
      "When time is : 80, get best_k: 1.5027707509881374 best_b: -4.919999999999973, and the loss is: 18.008441586144144\n",
      "When time is : 81, get best_k: 1.5090553853754891 best_b: -4.918999999999973, and the loss is: 17.96794495676146\n",
      "When time is : 82, get best_k: 1.5153400197628408 best_b: -4.917999999999973, and the loss is: 17.927448327378773\n",
      "When time is : 83, get best_k: 1.5216246541501925 best_b: -4.916999999999972, and the loss is: 17.886951697996082\n",
      "When time is : 84, get best_k: 1.5279092885375443 best_b: -4.915999999999972, and the loss is: 17.846455068613402\n",
      "When time is : 85, get best_k: 1.534193922924896 best_b: -4.914999999999972, and the loss is: 17.805958439230736\n",
      "When time is : 86, get best_k: 1.5404785573122477 best_b: -4.913999999999971, and the loss is: 17.765461809848034\n",
      "When time is : 87, get best_k: 1.5467631916995994 best_b: -4.912999999999971, and the loss is: 17.724965180465357\n",
      "When time is : 88, get best_k: 1.5530478260869511 best_b: -4.911999999999971, and the loss is: 17.684468551082663\n",
      "When time is : 89, get best_k: 1.5593324604743029 best_b: -4.91099999999997, and the loss is: 17.643971921699976\n",
      "When time is : 90, get best_k: 1.5656170948616546 best_b: -4.90999999999997, and the loss is: 17.603475292317295\n",
      "When time is : 91, get best_k: 1.5719017292490063 best_b: -4.90899999999997, and the loss is: 17.562978662934615\n",
      "When time is : 92, get best_k: 1.578186363636358 best_b: -4.907999999999969, and the loss is: 17.522482033551917\n",
      "When time is : 93, get best_k: 1.5844709980237097 best_b: -4.906999999999969, and the loss is: 17.481985404169233\n",
      "When time is : 94, get best_k: 1.5907556324110614 best_b: -4.905999999999969, and the loss is: 17.44148877478656\n",
      "When time is : 95, get best_k: 1.5970402667984132 best_b: -4.904999999999968, and the loss is: 17.40099214540385\n",
      "When time is : 96, get best_k: 1.6033249011857649 best_b: -4.903999999999968, and the loss is: 17.360495516021174\n",
      "When time is : 97, get best_k: 1.6096095355731166 best_b: -4.902999999999968, and the loss is: 17.3199988866385\n",
      "When time is : 98, get best_k: 1.6158941699604683 best_b: -4.901999999999967, and the loss is: 17.279502257255814\n",
      "When time is : 99, get best_k: 1.62217880434782 best_b: -4.900999999999967, and the loss is: 17.239005627873144\n",
      "When time is : 100, get best_k: 1.6284634387351717 best_b: -4.899999999999967, and the loss is: 17.198508998490446\n",
      "When time is : 101, get best_k: 1.6347480731225235 best_b: -4.898999999999966, and the loss is: 17.158012369107777\n",
      "When time is : 102, get best_k: 1.6410327075098752 best_b: -4.897999999999966, and the loss is: 17.117515739725082\n",
      "When time is : 103, get best_k: 1.647317341897227 best_b: -4.896999999999966, and the loss is: 17.077019110342388\n",
      "When time is : 104, get best_k: 1.6536019762845786 best_b: -4.895999999999965, and the loss is: 17.036522480959725\n",
      "When time is : 105, get best_k: 1.6598866106719303 best_b: -4.894999999999965, and the loss is: 16.99602585157702\n",
      "When time is : 106, get best_k: 1.666171245059282 best_b: -4.893999999999965, and the loss is: 16.955529222194333\n",
      "When time is : 107, get best_k: 1.6724558794466338 best_b: -4.892999999999964, and the loss is: 16.915032592811656\n",
      "When time is : 108, get best_k: 1.6787405138339855 best_b: -4.891999999999964, and the loss is: 16.874535963428983\n",
      "When time is : 109, get best_k: 1.6850251482213372 best_b: -4.890999999999964, and the loss is: 16.834039334046306\n",
      "When time is : 110, get best_k: 1.691309782608689 best_b: -4.889999999999963, and the loss is: 16.793542704663604\n",
      "When time is : 111, get best_k: 1.6975944169960406 best_b: -4.888999999999963, and the loss is: 16.7530460752809\n",
      "When time is : 112, get best_k: 1.7038790513833924 best_b: -4.887999999999963, and the loss is: 16.71254944589825\n",
      "When time is : 113, get best_k: 1.710163685770744 best_b: -4.886999999999962, and the loss is: 16.672052816515542\n",
      "When time is : 114, get best_k: 1.7164483201580958 best_b: -4.885999999999962, and the loss is: 16.63155618713286\n",
      "When time is : 115, get best_k: 1.7227329545454475 best_b: -4.884999999999962, and the loss is: 16.591059557750185\n",
      "When time is : 116, get best_k: 1.7290175889327992 best_b: -4.883999999999961, and the loss is: 16.550562928367494\n",
      "When time is : 117, get best_k: 1.735302223320151 best_b: -4.882999999999961, and the loss is: 16.510066298984825\n",
      "When time is : 118, get best_k: 1.7415868577075027 best_b: -4.881999999999961, and the loss is: 16.469630689809055\n",
      "When time is : 119, get best_k: 1.7478490296442615 best_b: -4.881003952569131, and the loss is: 16.429423781959052\n",
      "When time is : 120, get best_k: 1.7541112015810203 best_b: -4.880007905138301, and the loss is: 16.389303260902466\n",
      "When time is : 121, get best_k: 1.7603497094861587 best_b: -4.879015810276641, and the loss is: 16.349400027805455\n",
      "When time is : 122, get best_k: 1.766588217391297 best_b: -4.878023715414981, and the loss is: 16.30949679470846\n",
      "When time is : 123, get best_k: 1.7728267252964354 best_b: -4.877031620553321, and the loss is: 16.26959356161145\n",
      "When time is : 124, get best_k: 1.7790652332015737 best_b: -4.876039525691661, and the loss is: 16.22969032851443\n",
      "When time is : 125, get best_k: 1.785303741106712 best_b: -4.875047430830001, and the loss is: 16.18978709541742\n",
      "When time is : 126, get best_k: 1.7915422490118504 best_b: -4.874055335968341, and the loss is: 16.14988386232044\n",
      "When time is : 127, get best_k: 1.7977807569169888 best_b: -4.873063241106681, and the loss is: 16.10998062922341\n",
      "When time is : 128, get best_k: 1.8040192648221272 best_b: -4.8720711462450215, and the loss is: 16.07007739612642\n",
      "When time is : 129, get best_k: 1.8102577727272655 best_b: -4.8710790513833615, and the loss is: 16.030175177192646\n",
      "When time is : 130, get best_k: 1.81647472727272 best_b: -4.870090909090871, and the loss is: 15.990548228182194\n",
      "When time is : 131, get best_k: 1.8226916818181744 best_b: -4.869102766798381, and the loss is: 15.950921279171723\n",
      "When time is : 132, get best_k: 1.8289086363636289 best_b: -4.868114624505891, and the loss is: 15.911434819281103\n",
      "When time is : 133, get best_k: 1.8350987845849727 best_b: -4.86713043478257, and the loss is: 15.872148254867387\n",
      "When time is : 134, get best_k: 1.8412889328063164 best_b: -4.86614624505925, and the loss is: 15.832861690453695\n",
      "When time is : 135, get best_k: 1.8474790810276602 best_b: -4.865162055335929, and the loss is: 15.793575126040002\n",
      "When time is : 136, get best_k: 1.853669229249004 best_b: -4.864177865612609, and the loss is: 15.754288561626304\n",
      "When time is : 137, get best_k: 1.8598593774703478 best_b: -4.863193675889288, and the loss is: 15.7150019972126\n",
      "When time is : 138, get best_k: 1.8660495256916916 best_b: -4.862209486165968, and the loss is: 15.67571543279892\n",
      "When time is : 139, get best_k: 1.8722396739130354 best_b: -4.8612252964426474, and the loss is: 15.636428868385224\n",
      "When time is : 140, get best_k: 1.8784298221343791 best_b: -4.860241106719327, and the loss is: 15.59724339633869\n",
      "When time is : 141, get best_k: 1.8845945395256836 best_b: -4.859260869565177, and the loss is: 15.558278790945645\n",
      "When time is : 142, get best_k: 1.890759256916988 best_b: -4.858280632411027, and the loss is: 15.519314185552634\n",
      "When time is : 143, get best_k: 1.8969239743082924 best_b: -4.857300395256877, and the loss is: 15.480349580159618\n",
      "When time is : 144, get best_k: 1.9030886916995968 best_b: -4.8563201581027275, and the loss is: 15.4414441503134\n",
      "When time is : 145, get best_k: 1.9092283379446562 best_b: -4.855343873517747, and the loss is: 15.40286477598924\n",
      "When time is : 146, get best_k: 1.915344853754933 best_b: -4.854371541501937, and the loss is: 15.364507580782906\n",
      "When time is : 147, get best_k: 1.9214613695652096 best_b: -4.853399209486127, and the loss is: 15.326150385576584\n",
      "When time is : 148, get best_k: 1.9275778853754864 best_b: -4.852426877470316, and the loss is: 15.287793190370238\n",
      "When time is : 149, get best_k: 1.933694401185763 best_b: -4.851454545454506, and the loss is: 15.249435995163912\n",
      "When time is : 150, get best_k: 1.9398109169960398 best_b: -4.850482213438696, and the loss is: 15.211078799957548\n",
      "When time is : 151, get best_k: 1.9459274328063165 best_b: -4.849509881422885, and the loss is: 15.172838201273144\n",
      "When time is : 152, get best_k: 1.9520169762845774 best_b: -4.848541501976245, and the loss is: 15.13481790274683\n",
      "When time is : 153, get best_k: 1.9581065197628382 best_b: -4.847573122529604, and the loss is: 15.096797604220557\n",
      "When time is : 154, get best_k: 1.964196063241099 best_b: -4.846604743082963, and the loss is: 15.058777305694253\n",
      "When time is : 155, get best_k: 1.97028560671936 best_b: -4.845636363636323, and the loss is: 15.020757007167937\n",
      "When time is : 156, get best_k: 1.9763751501976208 best_b: -4.844667984189682, and the loss is: 14.982736708641626\n",
      "When time is : 157, get best_k: 1.9824646936758816 best_b: -4.843699604743041, and the loss is: 14.94471641011532\n",
      "When time is : 158, get best_k: 1.9885542371541425 best_b: -4.842731225296401, and the loss is: 14.906696111589001\n",
      "When time is : 159, get best_k: 1.9946437806324033 best_b: -4.84176284584976, and the loss is: 14.868675813062735\n",
      "When time is : 160, get best_k: 2.0007333241106644 best_b: -4.8407944664031195, and the loss is: 14.830655514536405\n",
      "When time is : 161, get best_k: 2.0068228675889253 best_b: -4.839826086956479, and the loss is: 14.792635216010112\n",
      "When time is : 162, get best_k: 2.012912411067186 best_b: -4.838857707509838, and the loss is: 14.754614917483796\n",
      "When time is : 163, get best_k: 2.019001954545447 best_b: -4.837889328063198, and the loss is: 14.716594618957492\n",
      "When time is : 164, get best_k: 2.025091498023708 best_b: -4.836920948616557, and the loss is: 14.678574320431183\n",
      "When time is : 165, get best_k: 2.0311810415019687 best_b: -4.835952569169916, and the loss is: 14.640554021904874\n",
      "When time is : 166, get best_k: 2.0372705849802295 best_b: -4.834984189723276, and the loss is: 14.602533723378565\n",
      "When time is : 167, get best_k: 2.0433601284584904 best_b: -4.834015810276635, and the loss is: 14.56451342485228\n",
      "When time is : 168, get best_k: 2.049449671936751 best_b: -4.833047430829994, and the loss is: 14.526493126325972\n",
      "When time is : 169, get best_k: 2.055539215415012 best_b: -4.832079051383354, and the loss is: 14.48847282779966\n",
      "When time is : 170, get best_k: 2.061628758893273 best_b: -4.831110671936713, and the loss is: 14.450452529273347\n",
      "When time is : 171, get best_k: 2.0677183023715338 best_b: -4.8301422924900725, and the loss is: 14.41243223074706\n",
      "When time is : 172, get best_k: 2.0738078458497946 best_b: -4.829173913043432, and the loss is: 14.374411932220736\n",
      "When time is : 173, get best_k: 2.0798973893280555 best_b: -4.828205533596791, and the loss is: 14.336391633694433\n",
      "When time is : 174, get best_k: 2.0859869328063163 best_b: -4.827237154150151, and the loss is: 14.298371335168131\n",
      "When time is : 175, get best_k: 2.092076476284577 best_b: -4.82626877470351, and the loss is: 14.260351036641833\n",
      "When time is : 176, get best_k: 2.098166019762838 best_b: -4.825300395256869, and the loss is: 14.222330738115522\n",
      "When time is : 177, get best_k: 2.104255563241099 best_b: -4.824332015810229, and the loss is: 14.184310439589224\n",
      "When time is : 178, get best_k: 2.1103451067193597 best_b: -4.823363636363588, and the loss is: 14.146290141062911\n",
      "When time is : 179, get best_k: 2.1164346501976206 best_b: -4.8223952569169475, and the loss is: 14.108269842536615\n",
      "When time is : 180, get best_k: 2.1225241936758814 best_b: -4.821426877470307, and the loss is: 14.070249544010304\n",
      "When time is : 181, get best_k: 2.1286137371541423 best_b: -4.820458498023666, and the loss is: 14.032229245484006\n",
      "When time is : 182, get best_k: 2.134703280632403 best_b: -4.819490118577026, and the loss is: 13.994208946957706\n",
      "When time is : 183, get best_k: 2.140792824110664 best_b: -4.818521739130385, and the loss is: 13.95618864843137\n",
      "When time is : 184, get best_k: 2.146882367588925 best_b: -4.817553359683744, and the loss is: 13.918168349905091\n",
      "When time is : 185, get best_k: 2.1529719110671857 best_b: -4.816584980237104, and the loss is: 13.880148051378775\n",
      "When time is : 186, get best_k: 2.1590614545454465 best_b: -4.815616600790463, and the loss is: 13.842127752852464\n",
      "When time is : 187, get best_k: 2.1651509980237074 best_b: -4.814648221343822, and the loss is: 13.80410745432617\n",
      "When time is : 188, get best_k: 2.171240541501968 best_b: -4.813679841897182, and the loss is: 13.766087155799857\n",
      "When time is : 189, get best_k: 2.177330084980229 best_b: -4.812711462450541, and the loss is: 13.728066857273573\n",
      "When time is : 190, get best_k: 2.18341962845849 best_b: -4.8117430830039005, and the loss is: 13.690092470500469\n",
      "When time is : 191, get best_k: 2.189460231225288 best_b: -4.8107826086956, and the loss is: 13.652681077817313\n",
      "When time is : 192, get best_k: 2.1955008339920865 best_b: -4.8098221343873, and the loss is: 13.61526968513415\n",
      "When time is : 193, get best_k: 2.201541436758885 best_b: -4.808861660079, and the loss is: 13.577996716399083\n",
      "When time is : 194, get best_k: 2.2075577233201495 best_b: -4.807905138339869, and the loss is: 13.540886078574381\n",
      "When time is : 195, get best_k: 2.2135740098814143 best_b: -4.806948616600739, and the loss is: 13.503775440749708\n",
      "When time is : 196, get best_k: 2.219590296442679 best_b: -4.805992094861608, and the loss is: 13.466664802925038\n",
      "When time is : 197, get best_k: 2.2256065830039438 best_b: -4.805035573122478, and the loss is: 13.429637486591556\n",
      "When time is : 198, get best_k: 2.2315761067193587 best_b: -4.8040869565216875, and the loss is: 13.393158234802645\n",
      "When time is : 199, get best_k: 2.2375200928853665 best_b: -4.803142292490067, and the loss is: 13.356934873128328\n",
      "When time is : 200, get best_k: 2.2434640790513742 best_b: -4.802197628458447, and the loss is: 13.320755397603733\n",
      "When time is : 201, get best_k: 2.249382847826078 best_b: -4.801256916995996, and the loss is: 13.284838635739755\n",
      "When time is : 202, get best_k: 2.2553016166007818 best_b: -4.800316205533545, and the loss is: 13.248921873875767\n",
      "When time is : 203, get best_k: 2.2612203853754855 best_b: -4.799375494071095, and the loss is: 13.213005112011768\n",
      "When time is : 204, get best_k: 2.2671391541501893 best_b: -4.798434782608644, and the loss is: 13.177088350147793\n",
      "When time is : 205, get best_k: 2.273057922924893 best_b: -4.797494071146193, and the loss is: 13.141171588283786\n",
      "When time is : 206, get best_k: 2.278976691699597 best_b: -4.796553359683743, and the loss is: 13.105371848721818\n",
      "When time is : 207, get best_k: 2.2848746027667906 best_b: -4.795616600790462, and the loss is: 13.069769772619777\n",
      "When time is : 208, get best_k: 2.2907489683794386 best_b: -4.794683794466351, and the loss is: 13.034391473630423\n",
      "When time is : 209, get best_k: 2.2966233339920867 best_b: -4.793750988142241, and the loss is: 12.999013174641048\n",
      "When time is : 210, get best_k: 2.302497699604735 best_b: -4.792818181818131, and the loss is: 12.963634875651687\n",
      "When time is : 211, get best_k: 2.308372065217383 best_b: -4.7918853754940205, and the loss is: 12.928256576662328\n",
      "When time is : 212, get best_k: 2.314246430830031 best_b: -4.79095256916991, and the loss is: 12.892913936442959\n",
      "When time is : 213, get best_k: 2.3200980810276595 best_b: -4.79002371541497, and the loss is: 12.857809357109492\n",
      "When time is : 214, get best_k: 2.325949731225288 best_b: -4.789094861660029, and the loss is: 12.822704777776016\n",
      "When time is : 215, get best_k: 2.3318013814229164 best_b: -4.7881660079050885, and the loss is: 12.78760019844256\n",
      "When time is : 216, get best_k: 2.337653031620545 best_b: -4.787237154150148, and the loss is: 12.75249561910906\n",
      "When time is : 217, get best_k: 2.3435046818181733 best_b: -4.786308300395207, and the loss is: 12.717391039775585\n",
      "When time is : 218, get best_k: 2.3493563320158017 best_b: -4.785379446640267, and the loss is: 12.682286460442125\n",
      "When time is : 219, get best_k: 2.35520798221343 best_b: -4.784450592885326, and the loss is: 12.647181881108652\n",
      "When time is : 220, get best_k: 2.3610596324110587 best_b: -4.783521739130386, and the loss is: 12.61207730177518\n",
      "When time is : 221, get best_k: 2.366911282608687 best_b: -4.782592885375445, and the loss is: 12.576972722441708\n",
      "When time is : 222, get best_k: 2.3727629328063156 best_b: -4.781664031620505, and the loss is: 12.541868143108239\n",
      "When time is : 223, get best_k: 2.378614583003944 best_b: -4.780735177865564, and the loss is: 12.506763563774763\n",
      "When time is : 224, get best_k: 2.3844662332015725 best_b: -4.7798063241106234, and the loss is: 12.471658984441296\n",
      "When time is : 225, get best_k: 2.390317883399201 best_b: -4.778877470355683, and the loss is: 12.436554405107833\n",
      "When time is : 226, get best_k: 2.3961695335968294 best_b: -4.777948616600742, and the loss is: 12.401469513445472\n",
      "When time is : 227, get best_k: 2.4019953142292403 best_b: -4.7770237154149715, and the loss is: 12.366707601729814\n",
      "When time is : 228, get best_k: 2.4077992332015725 best_b: -4.77610276679837, and the loss is: 12.332204145398121\n",
      "When time is : 229, get best_k: 2.4135785553359597 best_b: -4.77518577075094, and the loss is: 12.297962699314127\n",
      "When time is : 230, get best_k: 2.419357877470347 best_b: -4.7742687747035095, and the loss is: 12.263721253230097\n",
      "When time is : 231, get best_k: 2.425137199604734 best_b: -4.773351778656079, and the loss is: 12.229479807146067\n",
      "When time is : 232, get best_k: 2.430916521739121 best_b: -4.772434782608649, and the loss is: 12.19523836106204\n",
      "When time is : 233, get best_k: 2.4366958438735082 best_b: -4.771517786561218, and the loss is: 12.161044193368557\n",
      "When time is : 234, get best_k: 2.442455403162046 best_b: -4.7706047430829575, and the loss is: 12.127038021777201\n",
      "When time is : 235, get best_k: 2.4482149624505833 best_b: -4.769691699604697, and the loss is: 12.093133866527884\n",
      "When time is : 236, get best_k: 2.453953379446631 best_b: -4.768782608695606, and the loss is: 12.059377990626368\n",
      "When time is : 237, get best_k: 2.4596917964426783 best_b: -4.767873517786515, and the loss is: 12.025622114724845\n",
      "When time is : 238, get best_k: 2.465430213438726 best_b: -4.766964426877424, and the loss is: 11.991866238823329\n",
      "When time is : 239, get best_k: 2.4711686304347733 best_b: -4.766055335968333, and the loss is: 11.958110362921834\n",
      "When time is : 240, get best_k: 2.476907047430821 best_b: -4.765146245059242, and the loss is: 11.924354487020311\n",
      "When time is : 241, get best_k: 2.4826454644268683 best_b: -4.764237154150151, and the loss is: 11.890598611118783\n",
      "When time is : 242, get best_k: 2.4883838814229158 best_b: -4.76332806324106, and the loss is: 11.85684273521727\n",
      "When time is : 243, get best_k: 2.4941222984189633 best_b: -4.762418972331969, and the loss is: 11.823086859315751\n",
      "When time is : 244, get best_k: 2.4998607154150108 best_b: -4.761509881422878, and the loss is: 11.789330983414228\n",
      "When time is : 245, get best_k: 2.5055991324110582 best_b: -4.760600790513787, and the loss is: 11.7555751075127\n",
      "When time is : 246, get best_k: 2.5113375494071057 best_b: -4.759691699604696, and the loss is: 11.721819231611185\n",
      "When time is : 247, get best_k: 2.5170759664031532 best_b: -4.758782608695605, and the loss is: 11.688063355709671\n",
      "When time is : 248, get best_k: 2.5228143833992007 best_b: -4.757873517786514, and the loss is: 11.65430747980815\n",
      "When time is : 249, get best_k: 2.528552800395248 best_b: -4.756964426877423, and the loss is: 11.62073371863671\n",
      "When time is : 250, get best_k: 2.534246573122521 best_b: -4.756063241106673, and the loss is: 11.587502534973455\n",
      "When time is : 251, get best_k: 2.539940345849794 best_b: -4.755162055335922, and the loss is: 11.554271351310234\n",
      "When time is : 252, get best_k: 2.5456341185770666 best_b: -4.754260869565171, and the loss is: 11.521083057871433\n",
      "When time is : 253, get best_k: 2.5513034130434695 best_b: -4.7533636363635905, and the loss is: 11.488137130706617\n",
      "When time is : 254, get best_k: 2.5569727075098725 best_b: -4.75246640316201, and the loss is: 11.455191203541819\n",
      "When time is : 255, get best_k: 2.5626420019762755 best_b: -4.751569169960429, and the loss is: 11.422273370117662\n",
      "When time is : 256, get best_k: 2.5682626956521646 best_b: -4.750679841897187, and the loss is: 11.38989026831538\n",
      "When time is : 257, get best_k: 2.5738833893280537 best_b: -4.749790513833946, and the loss is: 11.357507166513134\n",
      "When time is : 258, get best_k: 2.579504083003943 best_b: -4.748901185770705, and the loss is: 11.325124064710892\n",
      "When time is : 259, get best_k: 2.585124776679832 best_b: -4.748011857707463, and the loss is: 11.292740962908642\n",
      "When time is : 260, get best_k: 2.590745470355721 best_b: -4.747122529644222, and the loss is: 11.26035786110641\n",
      "When time is : 261, get best_k: 2.5963661640316102 best_b: -4.7462332015809805, and the loss is: 11.227974759304127\n",
      "When time is : 262, get best_k: 2.6019868577074994 best_b: -4.745343873517739, and the loss is: 11.195643178199367\n",
      "When time is : 263, get best_k: 2.6075896897233095 best_b: -4.744458498023668, and the loss is: 11.163467561836503\n",
      "When time is : 264, get best_k: 2.6131925217391196 best_b: -4.743573122529598, and the loss is: 11.131291945473595\n",
      "When time is : 265, get best_k: 2.6187953537549298 best_b: -4.742687747035527, and the loss is: 11.0991163291107\n",
      "When time is : 266, get best_k: 2.62439818577074 best_b: -4.741802371541456, and the loss is: 11.067047219756809\n",
      "When time is : 267, get best_k: 2.6299780217391193 best_b: -4.740920948616555, and the loss is: 11.035141507992115\n",
      "When time is : 268, get best_k: 2.6355325454545344 best_b: -4.740043478260824, and the loss is: 11.003518820061851\n",
      "When time is : 269, get best_k: 2.6410870691699495 best_b: -4.739166007905093, and the loss is: 10.971896132131537\n",
      "When time is : 270, get best_k: 2.6466415928853646 best_b: -4.738288537549361, and the loss is: 10.94027344420125\n",
      "When time is : 271, get best_k: 2.6521961166007797 best_b: -4.73741106719363, and the loss is: 10.908759145301255\n",
      "When time is : 272, get best_k: 2.657726102766788 best_b: -4.7365375494070685, and the loss is: 10.877580758851048\n",
      "When time is : 273, get best_k: 2.663206096837934 best_b: -4.735671936758847, and the loss is: 10.846801138574506\n",
      "When time is : 274, get best_k: 2.66868609090908 best_b: -4.734806324110626, and the loss is: 10.816021518297935\n",
      "When time is : 275, get best_k: 2.674166084980226 best_b: -4.733940711462405, and the loss is: 10.785241898021388\n",
      "When time is : 276, get best_k: 2.679646079051372 best_b: -4.733075098814184, and the loss is: 10.754462277744834\n",
      "When time is : 277, get best_k: 2.685126073122518 best_b: -4.732209486165963, and the loss is: 10.723682657468265\n",
      "When time is : 278, get best_k: 2.6906060671936642 best_b: -4.7313438735177415, and the loss is: 10.693019813716733\n",
      "When time is : 279, get best_k: 2.696034069169949 best_b: -4.73048616600786, and the loss is: 10.66282094608967\n",
      "When time is : 280, get best_k: 2.7014620711462336 best_b: -4.729628458497978, and the loss is: 10.632725492169309\n",
      "When time is : 281, get best_k: 2.706861167984178 best_b: -4.728774703557267, and the loss is: 10.602846348005022\n",
      "When time is : 282, get best_k: 2.7122602648221226 best_b: -4.727920948616556, and the loss is: 10.572967203840728\n",
      "When time is : 283, get best_k: 2.717659361660067 best_b: -4.727067193675845, and the loss is: 10.543088059676446\n",
      "When time is : 284, get best_k: 2.7230584584980115 best_b: -4.726213438735134, and the loss is: 10.51320891551215\n",
      "When time is : 285, get best_k: 2.728457555335956 best_b: -4.725359683794423, and the loss is: 10.483329771347861\n",
      "When time is : 286, get best_k: 2.7338566521739005 best_b: -4.724505928853712, and the loss is: 10.453450627183575\n",
      "When time is : 287, get best_k: 2.739255749011845 best_b: -4.723652173913001, and the loss is: 10.423709325652808\n",
      "When time is : 288, get best_k: 2.744628644268762 best_b: -4.7228023715414595, and the loss is: 10.394119158140326\n",
      "When time is : 289, get best_k: 2.750001539525679 best_b: -4.721952569169918, and the loss is: 10.36452899062786\n",
      "When time is : 290, get best_k: 2.755374434782596 best_b: -4.721102766798377, and the loss is: 10.334999281402922\n",
      "When time is : 291, get best_k: 2.7606947450592756 best_b: -4.720260869565175, and the loss is: 10.306090435031837\n",
      "When time is : 292, get best_k: 2.7659912213438607 best_b: -4.719422924901144, and the loss is: 10.277453973499394\n",
      "When time is : 293, get best_k: 2.771262333992082 best_b: -4.718588932806282, and the loss is: 10.248991872952981\n",
      "When time is : 294, get best_k: 2.776508739130422 best_b: -4.717758893280591, and the loss is: 10.220778140463166\n",
      "When time is : 295, get best_k: 2.781755144268762 best_b: -4.716928853754899, and the loss is: 10.192564407973354\n",
      "When time is : 296, get best_k: 2.7870015494071017 best_b: -4.716098814229207, and the loss is: 10.164350675483558\n",
      "When time is : 297, get best_k: 2.7922479545454415 best_b: -4.715268774703516, and the loss is: 10.136136942993735\n",
      "When time is : 298, get best_k: 2.7974943596837814 best_b: -4.714438735177824, and the loss is: 10.108055919118954\n",
      "When time is : 299, get best_k: 2.8027155474308167 best_b: -4.713612648221302, and the loss is: 10.080198243529303\n",
      "When time is : 300, get best_k: 2.8079104545454414 best_b: -4.7127905138339505, and the loss is: 10.052535278648856\n",
      "When time is : 301, get best_k: 2.813105361660066 best_b: -4.711968379446599, and the loss is: 10.024872313768421\n",
      "When time is : 302, get best_k: 2.8183002687746908 best_b: -4.711146245059248, and the loss is: 9.99720934888796\n",
      "When time is : 303, get best_k: 2.8234951758893154 best_b: -4.7103241106718965, and the loss is: 9.96954638400752\n",
      "When time is : 304, get best_k: 2.82869008300394 best_b: -4.709501976284545, and the loss is: 9.941883419127077\n",
      "When time is : 305, get best_k: 2.8338849901185648 best_b: -4.708679841897194, and the loss is: 9.914220454246637\n",
      "When time is : 306, get best_k: 2.8390798972331894 best_b: -4.7078577075098424, and the loss is: 9.886557489366199\n",
      "When time is : 307, get best_k: 2.844274804347814 best_b: -4.707035573122491, and the loss is: 9.85889452448575\n",
      "When time is : 308, get best_k: 2.8494697114624388 best_b: -4.70621343873514, and the loss is: 9.831260705498046\n",
      "When time is : 309, get best_k: 2.854643654150186 best_b: -4.705395256916958, and the loss is: 9.803821601074354\n",
      "When time is : 310, get best_k: 2.859817596837933 best_b: -4.7045770750987765, and the loss is: 9.776382496650665\n",
      "When time is : 311, get best_k: 2.86499153952568 best_b: -4.703758893280595, and the loss is: 9.749039591830805\n",
      "When time is : 312, get best_k: 2.870145577075087 best_b: -4.702944664031583, and the loss is: 9.72181251950015\n",
      "When time is : 313, get best_k: 2.8752996146244945 best_b: -4.702130434782571, and the loss is: 9.694585447169498\n",
      "When time is : 314, get best_k: 2.8804536521739017 best_b: -4.701316205533559, and the loss is: 9.667358374838866\n",
      "When time is : 315, get best_k: 2.885607689723309 best_b: -4.7005019762845475, and the loss is: 9.640242323058256\n",
      "When time is : 316, get best_k: 2.890735936758882 best_b: -4.699691699604705, and the loss is: 9.613300384558192\n",
      "When time is : 317, get best_k: 2.89584230237153 best_b: -4.698885375494034, and the loss is: 9.586575256216705\n",
      "When time is : 318, get best_k: 2.9009486679841783 best_b: -4.698079051383362, and the loss is: 9.55985012787522\n",
      "When time is : 319, get best_k: 2.9060550335968265 best_b: -4.697272727272691, and the loss is: 9.533124999533733\n",
      "When time is : 320, get best_k: 2.9111613992094747 best_b: -4.696466403162019, and the loss is: 9.506402377589543\n",
      "When time is : 321, get best_k: 2.9162441442687634 best_b: -4.695664031620518, and the loss is: 9.480022408900403\n",
      "When time is : 322, get best_k: 2.9213002964426766 best_b: -4.694865612648186, and the loss is: 9.453844715049668\n",
      "When time is : 323, get best_k: 2.9263320928853642 best_b: -4.694071146245023, and the loss is: 9.427894562743267\n",
      "When time is : 324, get best_k: 2.931363889328052 best_b: -4.693276679841861, and the loss is: 9.401944410436888\n",
      "When time is : 325, get best_k: 2.9363956857707394 best_b: -4.692482213438699, and the loss is: 9.375994258130474\n",
      "When time is : 326, get best_k: 2.941427482213427 best_b: -4.6916877470355365, and the loss is: 9.350044105824088\n",
      "When time is : 327, get best_k: 2.9464592786561146 best_b: -4.690893280632374, and the loss is: 9.324118272114879\n",
      "When time is : 328, get best_k: 2.9514690790513716 best_b: -4.690102766798382, and the loss is: 9.298417205550034\n",
      "When time is : 329, get best_k: 2.9564534407114507 best_b: -4.68931620553356, and the loss is: 9.273015239681035\n",
      "When time is : 330, get best_k: 2.9614145335968263 best_b: -4.688533596837908, and the loss is: 9.247790320693195\n",
      "When time is : 331, get best_k: 2.966375626482202 best_b: -4.687750988142255, and the loss is: 9.222628798781574\n",
      "When time is : 332, get best_k: 2.971312596837933 best_b: -4.686972332015773, and the loss is: 9.1976488171249\n",
      "When time is : 333, get best_k: 2.976249567193664 best_b: -4.686193675889291, and the loss is: 9.172668835468217\n",
      "When time is : 334, get best_k: 2.9811865375493953 best_b: -4.685415019762808, and the loss is: 9.147688853811534\n",
      "When time is : 335, get best_k: 2.9861235079051265 best_b: -4.684636363636326, and the loss is: 9.122816378326302\n",
      "When time is : 336, get best_k: 2.991011905138328 best_b: -4.683865612648184, and the loss is: 9.098410157035543\n",
      "When time is : 337, get best_k: 2.9958739980237037 best_b: -4.683098814229211, and the loss is: 9.074182229994198\n",
      "When time is : 338, get best_k: 3.0007360909090792 best_b: -4.682332015810239, and the loss is: 9.049954302952814\n",
      "When time is : 339, get best_k: 3.0055981837944548 best_b: -4.681565217391267, and the loss is: 9.02580682243103\n",
      "When time is : 340, get best_k: 3.0104154545454427 best_b: -4.680806324110634, and the loss is: 9.002024805931308\n",
      "When time is : 341, get best_k: 3.0152327252964306 best_b: -4.680047430830001, and the loss is: 8.978255948226995\n",
      "When time is : 342, get best_k: 3.020025766798407 best_b: -4.679292490118539, and the loss is: 8.954712765909498\n",
      "When time is : 343, get best_k: 3.0248188083003833 best_b: -4.678537549407077, and the loss is: 8.931260541084834\n",
      "When time is : 344, get best_k: 3.029586758893269 best_b: -4.677786561264784, and the loss is: 8.908156356303431\n",
      "When time is : 345, get best_k: 3.0342956027667864 best_b: -4.677043478260831, and the loss is: 8.88543097332751\n",
      "When time is : 346, get best_k: 3.039004446640304 best_b: -4.676300395256878, and the loss is: 8.862784412909736\n",
      "When time is : 347, get best_k: 3.0436888438735057 best_b: -4.675561264822096, and the loss is: 8.840450503719765\n",
      "When time is : 348, get best_k: 3.0483214387351656 best_b: -4.674830039525653, and the loss is: 8.818458746044403\n",
      "When time is : 349, get best_k: 3.052934745059276 best_b: -4.67410276679838, and the loss is: 8.79664722518447\n",
      "When time is : 350, get best_k: 3.0575480513833866 best_b: -4.673375494071107, and the loss is: 8.774914496804238\n",
      "When time is : 351, get best_k: 3.0621377094861533 best_b: -4.672652173913004, and the loss is: 8.753342933251227\n",
      "When time is : 352, get best_k: 3.0667039051383274 best_b: -4.6719328063240715, and the loss is: 8.73197530078929\n",
      "When time is : 353, get best_k: 3.0712701007905014 best_b: -4.671213438735139, and the loss is: 8.710675713946308\n",
      "When time is : 354, get best_k: 3.075813146245047 best_b: -4.670498023715376, and the loss is: 8.689556216469859\n",
      "When time is : 355, get best_k: 3.080334373517774 best_b: -4.669786561264782, and the loss is: 8.668608541599594\n",
      "When time is : 356, get best_k: 3.0848556007905015 best_b: -4.669075098814189, and the loss is: 8.647694950653712\n",
      "When time is : 357, get best_k: 3.0893343577074974 best_b: -4.668371541501936, and the loss is: 8.627224084045771\n",
      "When time is : 358, get best_k: 3.093788051383387 best_b: -4.667671936758853, and the loss is: 8.606899249890567\n",
      "When time is : 359, get best_k: 3.0982417450592763 best_b: -4.66697233201577, and the loss is: 8.586673725556286\n",
      "When time is : 360, get best_k: 3.1026698063240983 best_b: -4.6662766798418565, and the loss is: 8.566582067044202\n",
      "When time is : 361, get best_k: 3.1070978675889203 best_b: -4.665581027667943, and the loss is: 8.546610176552916\n",
      "When time is : 362, get best_k: 3.111478782608683 best_b: -4.66489328063237, and the loss is: 8.526944764157598\n",
      "When time is : 363, get best_k: 3.115859697628446 best_b: -4.664205533596797, and the loss is: 8.507308548190085\n",
      "When time is : 364, get best_k: 3.120216166007893 best_b: -4.663521739130394, and the loss is: 8.487960301332725\n",
      "When time is : 365, get best_k: 3.1245501007905014 best_b: -4.66284189723316, and the loss is: 8.46871512562759\n",
      "When time is : 366, get best_k: 3.12888403557311 best_b: -4.662162055335926, and the loss is: 8.449469949922443\n",
      "When time is : 367, get best_k: 3.1332179703557186 best_b: -4.661482213438693, and the loss is: 8.430224774217317\n",
      "When time is : 368, get best_k: 3.137551905138327 best_b: -4.660802371541459, and the loss is: 8.410979598512162\n",
      "When time is : 369, get best_k: 3.1418858399209357 best_b: -4.660122529644226, and the loss is: 8.391791670989706\n",
      "When time is : 370, get best_k: 3.146175071146232 best_b: -4.6594505928853325, and the loss is: 8.37303384755228\n",
      "When time is : 371, get best_k: 3.1504378162055207 best_b: -4.658782608695609, and the loss is: 8.354416649234057\n",
      "When time is : 372, get best_k: 3.1547005612648094 best_b: -4.6581146245058855, and the loss is: 8.335799450915843\n",
      "When time is : 373, get best_k: 3.158963306324098 best_b: -4.657446640316162, and the loss is: 8.317276238983746\n",
      "When time is : 374, get best_k: 3.1632020513833865 best_b: -4.656782608695608, and the loss is: 8.298868341313007\n",
      "When time is : 375, get best_k: 3.167440796442675 best_b: -4.656118577075055, and the loss is: 8.280460443642268\n",
      "When time is : 376, get best_k: 3.1716795415019634 best_b: -4.655454545454501, and the loss is: 8.262052545971533\n",
      "When time is : 377, get best_k: 3.175918286561252 best_b: -4.654790513833947, and the loss is: 8.24364464830079\n",
      "When time is : 378, get best_k: 3.1801570316205403 best_b: -4.654126482213393, and the loss is: 8.225236750630062\n",
      "When time is : 379, get best_k: 3.1843957766798288 best_b: -4.65346245059284, and the loss is: 8.206828852959326\n",
      "When time is : 380, get best_k: 3.188634521739117 best_b: -4.652798418972286, and the loss is: 8.188420955288578\n",
      "When time is : 381, get best_k: 3.1928732667984057 best_b: -4.652134387351732, and the loss is: 8.170013057617847\n",
      "When time is : 382, get best_k: 3.197112011857694 best_b: -4.6514703557311785, and the loss is: 8.151605159947103\n",
      "When time is : 383, get best_k: 3.2013507569169826 best_b: -4.650806324110625, and the loss is: 8.13319726227637\n",
      "When time is : 384, get best_k: 3.205589501976271 best_b: -4.650142292490071, and the loss is: 8.11478936460563\n",
      "When time is : 385, get best_k: 3.2098282470355595 best_b: -4.649478260869517, and the loss is: 8.096381466934886\n",
      "When time is : 386, get best_k: 3.214066992094848 best_b: -4.648814229248964, and the loss is: 8.07797356926415\n",
      "When time is : 387, get best_k: 3.2183057371541364 best_b: -4.64815019762841, and the loss is: 8.059616836000293\n",
      "When time is : 388, get best_k: 3.2225205810276543 best_b: -4.647490118577027, and the loss is: 8.041416222768092\n",
      "When time is : 389, get best_k: 3.226735424901172 best_b: -4.646830039525644, and the loss is: 8.023215609535887\n",
      "When time is : 390, get best_k: 3.23095026877469 best_b: -4.646169960474261, and the loss is: 8.005065136684719\n",
      "When time is : 391, get best_k: 3.235139717391291 best_b: -4.645513833992047, and the loss is: 7.98722945630926\n",
      "When time is : 392, get best_k: 3.2392790395256785 best_b: -4.644865612648173, and the loss is: 7.969675277666372\n",
      "When time is : 393, get best_k: 3.243418361660066 best_b: -4.6442173913042994, and the loss is: 7.952121099023492\n",
      "When time is : 394, get best_k: 3.2475576837944535 best_b: -4.643569169960426, and the loss is: 7.934566920380608\n",
      "When time is : 395, get best_k: 3.251697005928841 best_b: -4.642920948616552, and the loss is: 7.917012741737723\n",
      "When time is : 396, get best_k: 3.2558363280632285 best_b: -4.642272727272678, and the loss is: 7.899473890647715\n",
      "When time is : 397, get best_k: 3.259957262845837 best_b: -4.641628458497975, and the loss is: 7.882076704911144\n",
      "When time is : 398, get best_k: 3.2640781976284456 best_b: -4.640984189723271, and the loss is: 7.8646795191745715\n",
      "When time is : 399, get best_k: 3.268199132411054 best_b: -4.640339920948568, and the loss is: 7.847282333438008\n",
      "When time is : 400, get best_k: 3.2723200671936628 best_b: -4.639695652173865, and the loss is: 7.829885147701428\n",
      "When time is : 401, get best_k: 3.2764410019762713 best_b: -4.639051383399162, and the loss is: 7.8125303532597545\n",
      "When time is : 402, get best_k: 3.2805399209486032 best_b: -4.638411067193628, and the loss is: 7.79531977762973\n",
      "When time is : 403, get best_k: 3.2846125276679707 best_b: -4.637774703557264, and the loss is: 7.778328693461406\n",
      "When time is : 404, get best_k: 3.2886851343873382 best_b: -4.6371383399209005, and the loss is: 7.761337609293084\n",
      "When time is : 405, get best_k: 3.2927577411067057 best_b: -4.636501976284537, and the loss is: 7.744499021712998\n",
      "When time is : 406, get best_k: 3.296757426877457 best_b: -4.635877470355683, and the loss is: 7.7282056149341525\n",
      "When time is : 407, get best_k: 3.3007322233201446 best_b: -4.635256916995999, and the loss is: 7.712021521701141\n",
      "When time is : 408, get best_k: 3.3047070197628323 best_b: -4.634636363636315, and the loss is: 7.695837428468106\n",
      "When time is : 409, get best_k: 3.30868181620552 best_b: -4.634015810276631, and the loss is: 7.679653335235094\n",
      "When time is : 410, get best_k: 3.3126566126482078 best_b: -4.633395256916947, and the loss is: 7.663525246418292\n",
      "When time is : 411, get best_k: 3.316609278656113 best_b: -4.632778656126433, and the loss is: 7.647521481313383\n",
      "When time is : 412, get best_k: 3.320561944664018 best_b: -4.632162055335919, and the loss is: 7.6315177162084575\n",
      "When time is : 413, get best_k: 3.3245146106719234 best_b: -4.631545454545405, and the loss is: 7.61551395110355\n",
      "When time is : 414, get best_k: 3.3284672766798287 best_b: -4.630928853754891, and the loss is: 7.599541311915794\n",
      "When time is : 415, get best_k: 3.3323946027667852 best_b: -4.630316205533547, and the loss is: 7.583742083879388\n",
      "When time is : 416, get best_k: 3.336321928853742 best_b: -4.629703557312204, and the loss is: 7.567942855842983\n",
      "When time is : 417, get best_k: 3.3402492549406984 best_b: -4.62909090909086, and the loss is: 7.552215864230899\n",
      "When time is : 418, get best_k: 3.3441552252964297 best_b: -4.628482213438686, and the loss is: 7.536588749414073\n",
      "When time is : 419, get best_k: 3.348061195652161 best_b: -4.6278735177865125, and the loss is: 7.520961634597242\n",
      "When time is : 420, get best_k: 3.3519671660078925 best_b: -4.627264822134339, and the loss is: 7.505363888131419\n",
      "When time is : 421, get best_k: 3.3558537569169835 best_b: -4.626660079051335, and the loss is: 7.489892585040344\n",
      "When time is : 422, get best_k: 3.3597403478260746 best_b: -4.6260553359683305, and the loss is: 7.47447187880591\n",
      "When time is : 423, get best_k: 3.3636046581027546 best_b: -4.625454545454496, and the loss is: 7.4592075582272575\n",
      "When time is : 424, get best_k: 3.3674481304347705 best_b: -4.6248577075098325, and the loss is: 7.444113262836858\n",
      "When time is : 425, get best_k: 3.3712660928853633 best_b: -4.6242648221343385, and the loss is: 7.429184912494244\n",
      "When time is : 426, get best_k: 3.375084055335956 best_b: -4.623671936758845, and the loss is: 7.414256562151632\n",
      "When time is : 427, get best_k: 3.3789020177865488 best_b: -4.623079051383351, and the loss is: 7.399328211809027\n",
      "When time is : 428, get best_k: 3.3827199802371415 best_b: -4.622486166007857, and the loss is: 7.384399861466421\n",
      "When time is : 429, get best_k: 3.3865379426877342 best_b: -4.621893280632363, and the loss is: 7.369471511123803\n",
      "When time is : 430, get best_k: 3.390355905138327 best_b: -4.621300395256869, and the loss is: 7.354543160781193\n",
      "When time is : 431, get best_k: 3.3941738675889197 best_b: -4.620707509881375, and the loss is: 7.339703230540921\n",
      "When time is : 432, get best_k: 3.39796650988141 best_b: -4.620118577075051, and the loss is: 7.325053856578617\n",
      "When time is : 433, get best_k: 3.4017377015810144 best_b: -4.619533596837896, and the loss is: 7.310489767865589\n",
      "When time is : 434, get best_k: 3.405508893280619 best_b: -4.618948616600742, and the loss is: 7.2959256791525675\n",
      "When time is : 435, get best_k: 3.4092800849802236 best_b: -4.618363636363587, and the loss is: 7.281396617367868\n",
      "When time is : 436, get best_k: 3.413028521739117 best_b: -4.617782608695603, and the loss is: 7.267012192145064\n",
      "When time is : 437, get best_k: 3.4167535434782472 best_b: -4.617205533596789, and the loss is: 7.252803389518399\n",
      "When time is : 438, get best_k: 3.4204785652173775 best_b: -4.616628458497975, and the loss is: 7.238594586891731\n",
      "When time is : 439, get best_k: 3.4242035869565077 best_b: -4.616051383399161, and the loss is: 7.224385784265069\n",
      "When time is : 440, get best_k: 3.427928608695638 best_b: -4.615474308300347, and the loss is: 7.210176981638401\n",
      "When time is : 441, get best_k: 3.4316536304347682 best_b: -4.614897233201533, and the loss is: 7.195968179011731\n",
      "When time is : 442, get best_k: 3.4353786521738985 best_b: -4.614320158102719, and the loss is: 7.181759376385066\n",
      "When time is : 443, get best_k: 3.4391036739130287 best_b: -4.613743083003905, and the loss is: 7.16755057375841\n",
      "When time is : 444, get best_k: 3.442828695652159 best_b: -4.6131660079050905, and the loss is: 7.153341771131747\n",
      "When time is : 445, get best_k: 3.4465537173912892 best_b: -4.612588932806276, and the loss is: 7.139132968505083\n",
      "When time is : 446, get best_k: 3.4502787391304195 best_b: -4.612011857707462, and the loss is: 7.124924165878413\n",
      "When time is : 447, get best_k: 3.4540037608695497 best_b: -4.611434782608648, and the loss is: 7.11079950832384\n",
      "When time is : 448, get best_k: 3.4577062015810123 best_b: -4.610861660079004, and the loss is: 7.096833380911256\n",
      "When time is : 449, get best_k: 3.461385061264807 best_b: -4.610292490118529, and the loss is: 7.082975417894295\n",
      "When time is : 450, get best_k: 3.4650639209486016 best_b: -4.6097233201580545, and the loss is: 7.069117454877342\n",
      "When time is : 451, get best_k: 3.4687427806323963 best_b: -4.60915415019758, and the loss is: 7.055259491860384\n",
      "When time is : 452, get best_k: 3.472421640316191 best_b: -4.608584980237105, and the loss is: 7.0414015288434255\n",
      "When time is : 453, get best_k: 3.4761004999999856 best_b: -4.608015810276631, and the loss is: 7.0275435658264644\n",
      "When time is : 454, get best_k: 3.4797793596837803 best_b: -4.607446640316156, and the loss is: 7.0136856028095185\n",
      "When time is : 455, get best_k: 3.483458219367575 best_b: -4.606877470355681, and the loss is: 6.999827639792561\n",
      "When time is : 456, get best_k: 3.4871370790513696 best_b: -4.606308300395207, and the loss is: 6.985969676775603\n",
      "When time is : 457, get best_k: 3.4908159387351643 best_b: -4.605739130434732, and the loss is: 6.972111713758654\n",
      "When time is : 458, get best_k: 3.494494798418959 best_b: -4.6051699604742575, and the loss is: 6.958253750741692\n",
      "When time is : 459, get best_k: 3.4981736581027536 best_b: -4.604600790513783, and the loss is: 6.944395787724748\n",
      "When time is : 460, get best_k: 3.5018525177865483 best_b: -4.604031620553308, and the loss is: 6.9306318169325065\n",
      "When time is : 461, get best_k: 3.505506175889315 best_b: -4.603466403162004, and the loss is: 6.916963128701156\n",
      "When time is : 462, get best_k: 3.509159833992082 best_b: -4.6029011857707, and the loss is: 6.903294440469811\n",
      "When time is : 463, get best_k: 3.512813492094849 best_b: -4.602335968379396, and the loss is: 6.889708484671711\n",
      "When time is : 464, get best_k: 3.516444395256904 best_b: -4.601774703557262, and the loss is: 6.876268760486202\n",
      "When time is : 465, get best_k: 3.5200260454545322 best_b: -4.601221343873467, and the loss is: 6.863147771280061\n",
      "When time is : 466, get best_k: 3.523586355731212 best_b: -4.600671936758843, and the loss is: 6.850170113836237\n",
      "When time is : 467, get best_k: 3.5271466660078916 best_b: -4.600122529644219, and the loss is: 6.837262651595235\n",
      "When time is : 468, get best_k: 3.5306827509881287 best_b: -4.599577075098765, and the loss is: 6.824461233946625\n",
      "When time is : 469, get best_k: 3.5342188359683657 best_b: -4.59903162055331, and the loss is: 6.811659816298013\n",
      "When time is : 470, get best_k: 3.5377549209486028 best_b: -4.598486166007856, and the loss is: 6.798858398649387\n",
      "When time is : 471, get best_k: 3.54129100592884 best_b: -4.597940711462401, and the loss is: 6.786067828321113\n",
      "When time is : 472, get best_k: 3.5448014189723183 best_b: -4.597399209486117, and the loss is: 6.773451604194965\n",
      "When time is : 473, get best_k: 3.5483118320157967 best_b: -4.596857707509832, and the loss is: 6.760835380068821\n",
      "When time is : 474, get best_k: 3.551822245059275 best_b: -4.596316205533547, and the loss is: 6.748260722999751\n",
      "When time is : 475, get best_k: 3.555308835968366 best_b: -4.595778656126432, and the loss is: 6.735815447467305\n",
      "When time is : 476, get best_k: 3.5587954268774573 best_b: -4.5952411067193175, and the loss is: 6.7233701719348655\n",
      "When time is : 477, get best_k: 3.5622820177865484 best_b: -4.594703557312203, and the loss is: 6.71092489640242\n",
      "When time is : 478, get best_k: 3.5657686086956395 best_b: -4.594166007905088, and the loss is: 6.698479620869971\n",
      "When time is : 479, get best_k: 3.5692551996047306 best_b: -4.593628458497973, and the loss is: 6.686034345337522\n",
      "When time is : 480, get best_k: 3.5727417905138217 best_b: -4.593090909090858, and the loss is: 6.673603081237552\n",
      "When time is : 481, get best_k: 3.576206258893268 best_b: -4.5925573122529135, and the loss is: 6.661315814499904\n",
      "When time is : 482, get best_k: 3.5796707272727146 best_b: -4.592023715414969, and the loss is: 6.6490285477622555\n",
      "When time is : 483, get best_k: 3.583135195652161 best_b: -4.591490118577025, and the loss is: 6.636771602549815\n",
      "When time is : 484, get best_k: 3.586574624505916 best_b: -4.59096047430825, and the loss is: 6.624661408658332\n",
      "When time is : 485, get best_k: 3.590014053359671 best_b: -4.590430830039476, and the loss is: 6.6126072158034805\n",
      "When time is : 486, get best_k: 3.5934312371541375 best_b: -4.589905138339871, and the loss is: 6.600653718955278\n",
      "When time is : 487, get best_k: 3.596848420948604 best_b: -4.589379446640266, and the loss is: 6.588700222107084\n",
      "When time is : 488, get best_k: 3.6002656047430706 best_b: -4.588853754940661, and the loss is: 6.576746725258889\n",
      "When time is : 489, get best_k: 3.603682788537537 best_b: -4.588328063241057, and the loss is: 6.564793228410693\n",
      "When time is : 490, get best_k: 3.6070999723320036 best_b: -4.587802371541452, and the loss is: 6.5529168171616385\n",
      "When time is : 491, get best_k: 3.610492602766786 best_b: -4.587280632411017, and the loss is: 6.541134664174404\n",
      "When time is : 492, get best_k: 3.6138852332015685 best_b: -4.586758893280582, and the loss is: 6.529352511187165\n",
      "When time is : 493, get best_k: 3.617277863636351 best_b: -4.5862371541501465, and the loss is: 6.517639700075183\n",
      "When time is : 494, get best_k: 3.6206483083003826 best_b: -4.585719367588882, and the loss is: 6.506029617100968\n",
      "When time is : 495, get best_k: 3.6239934367588806 best_b: -4.585205533596787, and the loss is: 6.494575707325688\n",
      "When time is : 496, get best_k: 3.6273385652173786 best_b: -4.584691699604693, and the loss is: 6.483121797550396\n",
      "When time is : 497, get best_k: 3.6306836936758766 best_b: -4.584177865612598, and the loss is: 6.471737338366797\n",
      "When time is : 498, get best_k: 3.6340072648221216 best_b: -4.583667984189673, and the loss is: 6.460431234137204\n",
      "When time is : 499, get best_k: 3.6373308359683665 best_b: -4.583158102766748, and the loss is: 6.449125129907607\n",
      "When time is : 500, get best_k: 3.6406544071146114 best_b: -4.582648221343823, and the loss is: 6.437862571278085\n",
      "When time is : 501, get best_k: 3.643953666007892 best_b: -4.582142292490068, and the loss is: 6.426748271704405\n",
      "When time is : 502, get best_k: 3.6472073992094733 best_b: -4.581644268774653, and the loss is: 6.415913464336221\n",
      "When time is : 503, get best_k: 3.6504611324110545 best_b: -4.581146245059238, and the loss is: 6.405082328832683\n",
      "When time is : 504, get best_k: 3.6536923636363507 best_b: -4.580652173912993, and the loss is: 6.394397367303801\n",
      "When time is : 505, get best_k: 3.656923594861647 best_b: -4.580158102766748, and the loss is: 6.383712405774923\n",
      "When time is : 506, get best_k: 3.660154826086943 best_b: -4.579664031620503, and the loss is: 6.373027444246035\n",
      "When time is : 507, get best_k: 3.6633860573122394 best_b: -4.579169960474258, and the loss is: 6.362342482717157\n",
      "When time is : 508, get best_k: 3.6666172885375357 best_b: -4.578675889328013, and the loss is: 6.3516575211882715\n",
      "When time is : 509, get best_k: 3.669848519762832 best_b: -4.5781818181817675, and the loss is: 6.3409725596593995\n",
      "When time is : 510, get best_k: 3.673079750988128 best_b: -4.577687747035522, and the loss is: 6.330335874317891\n",
      "When time is : 511, get best_k: 3.6762872114624363 best_b: -4.577197628458447, and the loss is: 6.319807855404046\n",
      "When time is : 512, get best_k: 3.6794946719367445 best_b: -4.576707509881372, and the loss is: 6.309279836490199\n",
      "When time is : 513, get best_k: 3.6827021324110527 best_b: -4.576217391304296, and the loss is: 6.29877819299061\n",
      "When time is : 514, get best_k: 3.6858840671936615 best_b: -4.5757312252963915, and the loss is: 6.28848103317944\n",
      "When time is : 515, get best_k: 3.689019389328049 best_b: -4.575252964426826, and the loss is: 6.2784220548337055\n",
      "When time is : 516, get best_k: 3.6921547114624365 best_b: -4.574774703557261, and the loss is: 6.268487352793488\n",
      "When time is : 517, get best_k: 3.6952203893280493 best_b: -4.574308300395206, and the loss is: 6.2588962120482625\n",
      "When time is : 518, get best_k: 3.698261486165994 best_b: -4.5738458498023205, and the loss is: 6.249438919072985\n",
      "When time is : 519, get best_k: 3.701279096837931 best_b: -4.573387351778605, and the loss is: 6.240122724467839\n",
      "When time is : 520, get best_k: 3.704296707509868 best_b: -4.572928853754889, and the loss is: 6.230806529862727\n",
      "When time is : 521, get best_k: 3.7073143181818047 best_b: -4.572470355731173, and the loss is: 6.221490335257579\n",
      "When time is : 522, get best_k: 3.7103319288537415 best_b: -4.572011857707458, and the loss is: 6.212174140652443\n",
      "When time is : 523, get best_k: 3.7133495395256784 best_b: -4.571553359683742, and the loss is: 6.202857946047305\n",
      "When time is : 524, get best_k: 3.716367150197615 best_b: -4.571094861660026, and the loss is: 6.193541751442172\n",
      "When time is : 525, get best_k: 3.719384760869552 best_b: -4.570636363636311, and the loss is: 6.184225556837028\n",
      "When time is : 526, get best_k: 3.722402371541489 best_b: -4.570177865612595, and the loss is: 6.174909362231885\n",
      "When time is : 527, get best_k: 3.7254199822134257 best_b: -4.569719367588879, and the loss is: 6.16559316762675\n",
      "When time is : 528, get best_k: 3.7284375928853626 best_b: -4.569260869565164, and the loss is: 6.156276973021618\n",
      "When time is : 529, get best_k: 3.7314552035572994 best_b: -4.568802371541448, and the loss is: 6.1469607784164815\n",
      "When time is : 530, get best_k: 3.7344728142292363 best_b: -4.568343873517732, and the loss is: 6.137647464944174\n",
      "When time is : 531, get best_k: 3.737467278656114 best_b: -4.567889328063187, and the loss is: 6.128536135785216\n",
      "When time is : 532, get best_k: 3.7404376482213313 best_b: -4.567438735177812, and the loss is: 6.119540174262031\n",
      "When time is : 533, get best_k: 3.743384796442675 best_b: -4.5669920948616065, and the loss is: 6.1107024652921424\n",
      "When time is : 534, get best_k: 3.746309687747023 best_b: -4.566549407114571, and the loss is: 6.102002278099716\n",
      "When time is : 535, get best_k: 3.749215187747023 best_b: -4.5661106719367055, and the loss is: 6.093367859293413\n",
      "When time is : 536, get best_k: 3.7521206877470226 best_b: -4.56567193675884, and the loss is: 6.084733440487115\n",
      "When time is : 537, get best_k: 3.7550261877470223 best_b: -4.565233201580975, and the loss is: 6.076099021680824\n",
      "When time is : 538, get best_k: 3.757931687747022 best_b: -4.56479446640311, and the loss is: 6.0674646028745185\n",
      "When time is : 539, get best_k: 3.760837187747022 best_b: -4.564355731225245, and the loss is: 6.058830184068234\n",
      "When time is : 540, get best_k: 3.7637426877470217 best_b: -4.5639169960473795, and the loss is: 6.050205856820926\n",
      "When time is : 541, get best_k: 3.7666225988142155 best_b: -4.563482213438684, and the loss is: 6.041722933149167\n",
      "When time is : 542, get best_k: 3.7695025098814092 best_b: -4.563047430829989, and the loss is: 6.033240009477397\n",
      "When time is : 543, get best_k: 3.772382420948603 best_b: -4.562612648221293, and the loss is: 6.024757085805633\n",
      "When time is : 544, get best_k: 3.7752623320157968 best_b: -4.562177865612598, and the loss is: 6.016274162133861\n",
      "When time is : 545, get best_k: 3.7781422430829905 best_b: -4.561743083003902, and the loss is: 6.007794214094621\n",
      "When time is : 546, get best_k: 3.78100231620552 best_b: -4.561312252964377, and the loss is: 5.999428581305444\n",
      "When time is : 547, get best_k: 3.7838623893280494 best_b: -4.560881422924851, and the loss is: 5.991129670838656\n",
      "When time is : 548, get best_k: 3.786699086956508 best_b: -4.560454545454495, and the loss is: 5.982900593028646\n",
      "When time is : 549, get best_k: 3.789535784584966 best_b: -4.560027667984139, and the loss is: 5.974671515218646\n",
      "When time is : 550, get best_k: 3.7923724822134246 best_b: -4.559600790513783, and the loss is: 5.96644243740865\n",
      "When time is : 551, get best_k: 3.795209179841883 best_b: -4.559173913043427, and the loss is: 5.958213359598654\n",
      "When time is : 552, get best_k: 3.7980458774703414 best_b: -4.558747035573071, and the loss is: 5.950035280766012\n",
      "When time is : 553, get best_k: 3.800860021739116 best_b: -4.558324110671886, and the loss is: 5.941937007328492\n",
      "When time is : 554, get best_k: 3.8036741660078905 best_b: -4.5579011857707, and the loss is: 5.933899716726697\n",
      "When time is : 555, get best_k: 3.806462567193661 best_b: -4.557482213438685, and the loss is: 5.925948997738903\n",
      "When time is : 556, get best_k: 3.809250968379432 best_b: -4.557063241106669, and the loss is: 5.918021895850479\n",
      "When time is : 557, get best_k: 3.8120144011857557 best_b: -4.556648221343823, and the loss is: 5.910213093571858\n",
      "When time is : 558, get best_k: 3.8147778339920797 best_b: -4.556233201580977, and the loss is: 5.902404291293242\n",
      "When time is : 559, get best_k: 3.8175412667984037 best_b: -4.555818181818132, and the loss is: 5.894598031368449\n",
      "When time is : 560, get best_k: 3.820280620553344 best_b: -4.5554071146244555, and the loss is: 5.886971194124154\n",
      "When time is : 561, get best_k: 3.822994970355716 best_b: -4.55499999999995, and the loss is: 5.879437756957037\n",
      "When time is : 562, get best_k: 3.8257093201580874 best_b: -4.5545928853754445, and the loss is: 5.871904319789909\n",
      "When time is : 563, get best_k: 3.828423669960459 best_b: -4.554185770750939, and the loss is: 5.8643708826227945\n",
      "When time is : 564, get best_k: 3.8311380197628306 best_b: -4.5537786561264335, and the loss is: 5.856897668727486\n",
      "When time is : 565, get best_k: 3.833825990118562 best_b: -4.553375494071098, and the loss is: 5.84950994445134\n",
      "When time is : 566, get best_k: 3.836513960474293 best_b: -4.552972332015762, and the loss is: 5.842122220175179\n",
      "When time is : 567, get best_k: 3.8392019308300243 best_b: -4.552569169960426, and the loss is: 5.834734495899035\n",
      "When time is : 568, get best_k: 3.8418899011857555 best_b: -4.5521660079050905, and the loss is: 5.827346771622874\n",
      "When time is : 569, get best_k: 3.8445778715414867 best_b: -4.551762845849755, and the loss is: 5.819959047346728\n",
      "When time is : 570, get best_k: 3.847265841897218 best_b: -4.551359683794419, and the loss is: 5.812623731155091\n",
      "When time is : 571, get best_k: 3.8499291916995895 best_b: -4.550960474308253, and the loss is: 5.805378840498111\n",
      "When time is : 572, get best_k: 3.852565280632396 best_b: -4.550565217391257, and the loss is: 5.798273647606017\n",
      "When time is : 573, get best_k: 3.855201369565202 best_b: -4.5501699604742605, and the loss is: 5.791182145458215\n",
      "When time is : 574, get best_k: 3.857814027667969 best_b: -4.549778656126434, and the loss is: 5.784203044003639\n",
      "When time is : 575, get best_k: 3.860426685770736 best_b: -4.549387351778607, and the loss is: 5.777223942549058\n",
      "When time is : 576, get best_k: 3.863039343873503 best_b: -4.548996047430781, and the loss is: 5.770244841094476\n",
      "When time is : 577, get best_k: 3.86565200197627 best_b: -4.548604743082954, and the loss is: 5.76326573963989\n",
      "When time is : 578, get best_k: 3.868264660079037 best_b: -4.548213438735128, and the loss is: 5.756295953177363\n",
      "When time is : 579, get best_k: 3.8708531521738987 best_b: -4.547826086956472, and the loss is: 5.749445620451767\n",
      "When time is : 580, get best_k: 3.8734416442687603 best_b: -4.547438735177816, and the loss is: 5.742633560377086\n",
      "When time is : 581, get best_k: 3.8760079347825944 best_b: -4.54705533596833, and the loss is: 5.735900718421861\n",
      "When time is : 582, get best_k: 3.8785742252964286 best_b: -4.546671936758844, and the loss is: 5.729219129085659\n",
      "When time is : 583, get best_k: 3.8811158952569027 best_b: -4.546292490118527, and the loss is: 5.72261506314483\n",
      "When time is : 584, get best_k: 3.883657565217377 best_b: -4.545913043478211, and the loss is: 5.716010997204002\n",
      "When time is : 585, get best_k: 3.886199235177851 best_b: -4.5455335968378945, and the loss is: 5.709423022604869\n",
      "When time is : 586, get best_k: 3.888716648221329 best_b: -4.545158102766748, and the loss is: 5.702986793183726\n",
      "When time is : 587, get best_k: 3.891214590909076 best_b: -4.544786561264772, and the loss is: 5.696609032424767\n",
      "When time is : 588, get best_k: 3.893712533596823 best_b: -4.544415019762796, and the loss is: 5.69023127166581\n",
      "When time is : 589, get best_k: 3.89621047628457 best_b: -4.54404347826082, and the loss is: 5.683887268393824\n",
      "When time is : 590, get best_k: 3.8986848300395107 best_b: -4.543675889328013, and the loss is: 5.677629720265716\n",
      "When time is : 591, get best_k: 3.9011591837944515 best_b: -4.543308300395207, and the loss is: 5.671372172137602\n",
      "When time is : 592, get best_k: 3.9036335375493922 best_b: -4.542940711462401, and the loss is: 5.66516993316234\n",
      "When time is : 593, get best_k: 3.9060841403161906 best_b: -4.542577075098764, and the loss is: 5.659070003185994\n",
      "When time is : 594, get best_k: 3.9085110118576925 best_b: -4.542217391304297, and the loss is: 5.653099172007286\n",
      "When time is : 595, get best_k: 3.9109110296442537 best_b: -4.541861660079001, and the loss is: 5.647342782009666\n",
      "When time is : 596, get best_k: 3.9132382213438586 best_b: -4.541517786561214, and the loss is: 5.641808711806717\n",
      "When time is : 597, get best_k: 3.9155654130434634 best_b: -4.541173913043427, and the loss is: 5.636274641603775\n",
      "When time is : 598, get best_k: 3.917892604743068 best_b: -4.54083003952564, and the loss is: 5.6307405714008265\n",
      "When time is : 599, get best_k: 3.920219796442673 best_b: -4.540486166007853, and the loss is: 5.625206501197878\n",
      "When time is : 600, get best_k: 3.922546988142278 best_b: -4.540142292490066, and the loss is: 5.619682650596434\n",
      "When time is : 601, get best_k: 3.924852069169946 best_b: -4.53980237154145, and the loss is: 5.614253705801012\n",
      "When time is : 602, get best_k: 3.9271571501976137 best_b: -4.539462450592834, and the loss is: 5.608824761005578\n",
      "When time is : 603, get best_k: 3.9294622312252816 best_b: -4.539122529644217, and the loss is: 5.6033958162101625\n",
      "When time is : 604, get best_k: 3.9317673122529495 best_b: -4.538782608695601, and the loss is: 5.597966871414744\n",
      "When time is : 605, get best_k: 3.9340723932806174 best_b: -4.538442687746985, and the loss is: 5.592603617766961\n",
      "When time is : 606, get best_k: 3.936330561264807 best_b: -4.538110671936708, and the loss is: 5.587394060623874\n",
      "When time is : 607, get best_k: 3.9385887292489965 best_b: -4.537778656126431, and the loss is: 5.58220651725767\n",
      "When time is : 608, get best_k: 3.940823169960459 best_b: -4.537450592885324, and the loss is: 5.577129968461119\n",
      "When time is : 609, get best_k: 3.943034598814214 best_b: -4.537126482213387, and the loss is: 5.572184704030028\n",
      "When time is : 610, get best_k: 3.945199328063226 best_b: -4.53681027667979, and the loss is: 5.567398665369024\n",
      "When time is : 611, get best_k: 3.947364057312238 best_b: -4.536494071146193, and the loss is: 5.562629502596329\n",
      "When time is : 612, get best_k: 3.9495054150197477 best_b: -4.536181818181766, and the loss is: 5.55794658785102\n",
      "When time is : 613, get best_k: 3.9516467727272575 best_b: -4.535869565217339, and the loss is: 5.553300237285056\n",
      "When time is : 614, get best_k: 3.953764679841882 best_b: -4.535561264822082, and the loss is: 5.548719657605165\n",
      "When time is : 615, get best_k: 3.9558825869565064 best_b: -4.535252964426825, and the loss is: 5.544218349646417\n",
      "When time is : 616, get best_k: 3.9579523438735023 best_b: -4.534952569169908, and the loss is: 5.5398879478986975\n",
      "When time is : 617, get best_k: 3.9599581719367434 best_b: -4.534664031620501, and the loss is: 5.535781347761995\n",
      "When time is : 618, get best_k: 3.9619639999999845 best_b: -4.534375494071094, and the loss is: 5.531706096723823\n",
      "When time is : 619, get best_k: 3.9639455434782453 best_b: -4.534090909090857, and the loss is: 5.527744290226724\n",
      "When time is : 620, get best_k: 3.965902711462435 best_b: -4.533810276679789, and the loss is: 5.523835029158242\n",
      "When time is : 621, get best_k: 3.9678598794466247 best_b: -4.533529644268722, and the loss is: 5.519925768089759\n",
      "When time is : 622, get best_k: 3.9698170474308143 best_b: -4.533249011857654, and the loss is: 5.516079417021149\n",
      "When time is : 623, get best_k: 3.9717045039525534 best_b: -4.532980237154097, and the loss is: 5.512452325375416\n",
      "When time is : 624, get best_k: 3.973575604743067 best_b: -4.532715415019709, and the loss is: 5.508881692066228\n",
      "When time is : 625, get best_k: 3.97542289920947 best_b: -4.532454545454492, and the loss is: 5.505401142290567\n",
      "When time is : 626, get best_k: 3.977270193675873 best_b: -4.532193675889275, and the loss is: 5.501920592514909\n",
      "When time is : 627, get best_k: 3.979117488142276 best_b: -4.531932806324058, and the loss is: 5.498440042739253\n",
      "When time is : 628, get best_k: 3.980964782608679 best_b: -4.5316719367588405, and the loss is: 5.494992096533705\n",
      "When time is : 629, get best_k: 3.9827888043478095 best_b: -4.531415019762793, and the loss is: 5.491599034886031\n",
      "When time is : 630, get best_k: 3.98461282608694 best_b: -4.531158102766746, and the loss is: 5.488205973238353\n",
      "When time is : 631, get best_k: 3.9864368478260706 best_b: -4.5309011857706984, and the loss is: 5.48481291159067\n",
      "When time is : 632, get best_k: 3.988260869565201 best_b: -4.530644268774651, and the loss is: 5.4814348287740975\n",
      "When time is : 633, get best_k: 3.99006146837943 best_b: -4.5303913043477735, and the loss is: 5.478128681683025\n",
      "When time is : 634, get best_k: 3.9918620671936593 best_b: -4.530138339920896, and the loss is: 5.474822534591955\n",
      "When time is : 635, get best_k: 3.9936626660078884 best_b: -4.529885375494018, and the loss is: 5.471516387500891\n",
      "When time is : 636, get best_k: 3.9954632648221176 best_b: -4.529632411067141, and the loss is: 5.468251305797533\n",
      "When time is : 637, get best_k: 3.9972394881422755 best_b: -4.529383399209433, and the loss is: 5.465034329609181\n",
      "When time is : 638, get best_k: 3.9990157114624334 best_b: -4.529134387351725, and the loss is: 5.461835751649981\n",
      "When time is : 639, get best_k: 4.000766994071129 best_b: -4.528889328063188, and the loss is: 5.4587087068195626\n",
      "When time is : 640, get best_k: 4.002518276679825 best_b: -4.52864426877465, and the loss is: 5.4555816619891395\n",
      "When time is : 641, get best_k: 4.004269559288521 best_b: -4.528399209486113, and the loss is: 5.452454617158727\n",
      "When time is : 642, get best_k: 4.006020841897217 best_b: -4.528154150197576, and the loss is: 5.44932757232831\n",
      "When time is : 643, get best_k: 4.007772124505913 best_b: -4.527909090909039, and the loss is: 5.4462005274978855\n",
      "When time is : 644, get best_k: 4.009523407114609 best_b: -4.5276640316205015, and the loss is: 5.443073482667467\n",
      "When time is : 645, get best_k: 4.011274689723305 best_b: -4.527418972331964, and the loss is: 5.439946437837052\n",
      "When time is : 646, get best_k: 4.013025972332001 best_b: -4.527173913043427, and the loss is: 5.436819393006639\n",
      "When time is : 647, get best_k: 4.0147772549406975 best_b: -4.52692885375489, and the loss is: 5.433745194471023\n",
      "When time is : 648, get best_k: 4.0164784584980096 best_b: -4.526691699604692, and the loss is: 5.4307948588366575\n",
      "When time is : 649, get best_k: 4.018179662055322 best_b: -4.526454545454494, and the loss is: 5.4278462697138705\n",
      "When time is : 650, get best_k: 4.0198576245059146 best_b: -4.526221343873466, and the loss is: 5.424981910673012\n",
      "When time is : 651, get best_k: 4.021510978260856 best_b: -4.525992094861609, and the loss is: 5.422213286838794\n",
      "When time is : 652, get best_k: 4.023139632411053 best_b: -4.525766798418921, and the loss is: 5.419510014010747\n",
      "When time is : 653, get best_k: 4.02476828656125 best_b: -4.5255415019762335, and the loss is: 5.41680674118271\n",
      "When time is : 654, get best_k: 4.0263969407114475 best_b: -4.525316205533546, and the loss is: 5.41413761710468\n",
      "When time is : 655, get best_k: 4.027999547430815 best_b: -4.525094861660028, and the loss is: 5.411520275697374\n",
      "When time is : 656, get best_k: 4.029602154150182 best_b: -4.52487351778651, and the loss is: 5.408902934290079\n",
      "When time is : 657, get best_k: 4.031204760869549 best_b: -4.524652173912992, and the loss is: 5.406285592882769\n",
      "When time is : 658, get best_k: 4.032807367588917 best_b: -4.524430830039474, and the loss is: 5.40366825147546\n",
      "When time is : 659, get best_k: 4.034409974308284 best_b: -4.524209486165956, and the loss is: 5.401103242932931\n",
      "When time is : 660, get best_k: 4.035965984189707 best_b: -4.523996047430779, and the loss is: 5.398636520088171\n",
      "When time is : 661, get best_k: 4.037521994071129 best_b: -4.523782608695601, and the loss is: 5.396169797243415\n",
      "When time is : 662, get best_k: 4.039078003952552 best_b: -4.523569169960424, and the loss is: 5.393703074398651\n",
      "When time is : 663, get best_k: 4.040634013833975 best_b: -4.523355731225246, and the loss is: 5.391277542040785\n",
      "When time is : 664, get best_k: 4.042145557312235 best_b: -4.523150197628408, and the loss is: 5.388950534294681\n",
      "When time is : 665, get best_k: 4.043657100790496 best_b: -4.52294466403157, and the loss is: 5.38662352654858\n",
      "When time is : 666, get best_k: 4.045168644268756 best_b: -4.522739130434732, and the loss is: 5.384325237731094\n",
      "When time is : 667, get best_k: 4.046633918972313 best_b: -4.522541501976234, and the loss is: 5.382139150766603\n",
      "When time is : 668, get best_k: 4.048099193675871 best_b: -4.522343873517737, and the loss is: 5.379953063802107\n",
      "When time is : 669, get best_k: 4.049564468379428 best_b: -4.522146245059239, and the loss is: 5.377766976837619\n",
      "When time is : 670, get best_k: 4.051029743082985 best_b: -4.521948616600741, and the loss is: 5.37558088987312\n",
      "When time is : 671, get best_k: 4.052495017786542 best_b: -4.5217509881422435, and the loss is: 5.373394802908629\n",
      "When time is : 672, get best_k: 4.0539602924901 best_b: -4.521553359683746, and the loss is: 5.371208715944134\n",
      "When time is : 673, get best_k: 4.055425567193657 best_b: -4.521355731225248, and the loss is: 5.369022628979645\n",
      "When time is : 674, get best_k: 4.056890841897214 best_b: -4.5211581027667505, and the loss is: 5.3668365420151485\n",
      "When time is : 675, get best_k: 4.058356116600772 best_b: -4.520960474308253, and the loss is: 5.364650455050651\n",
      "When time is : 676, get best_k: 4.059821391304329 best_b: -4.520762845849755, and the loss is: 5.362473336775193\n",
      "When time is : 677, get best_k: 4.061263472331997 best_b: -4.520569169960427, and the loss is: 5.360356228734723\n",
      "When time is : 678, get best_k: 4.062705553359665 best_b: -4.520375494071099, and the loss is: 5.358261008918027\n",
      "When time is : 679, get best_k: 4.0641240652173725 best_b: -4.520185770750941, and the loss is: 5.3562128380893546\n",
      "When time is : 680, get best_k: 4.06554257707508 best_b: -4.519996047430783, and the loss is: 5.354164667260683\n",
      "When time is : 681, get best_k: 4.066961088932787 best_b: -4.5198063241106246, and the loss is: 5.3521164964320125\n",
      "When time is : 682, get best_k: 4.068379600790495 best_b: -4.519616600790466, and the loss is: 5.350110989750138\n",
      "When time is : 683, get best_k: 4.069748515810257 best_b: -4.5194347826086485, and the loss is: 5.348247051676879\n",
      "When time is : 684, get best_k: 4.071067462450573 best_b: -4.51926086956517, and the loss is: 5.346477185690186\n",
      "When time is : 685, get best_k: 4.072386409090889 best_b: -4.519086956521692, and the loss is: 5.344707319703491\n",
      "When time is : 686, get best_k: 4.073705355731205 best_b: -4.518913043478213, and the loss is: 5.342937453716798\n",
      "When time is : 687, get best_k: 4.075024302371521 best_b: -4.518739130434735, and the loss is: 5.341212823576135\n",
      "When time is : 688, get best_k: 4.076290727272706 best_b: -4.518573122529597, and the loss is: 5.339581432921219\n",
      "When time is : 689, get best_k: 4.077557152173892 best_b: -4.518407114624459, and the loss is: 5.3379500422663035\n",
      "When time is : 690, get best_k: 4.078823577075077 best_b: -4.518241106719321, and the loss is: 5.33631865161139\n",
      "When time is : 691, get best_k: 4.080090001976263 best_b: -4.518075098814183, and the loss is: 5.334687260956479\n",
      "When time is : 692, get best_k: 4.0813564268774485 best_b: -4.517909090909045, and the loss is: 5.333055870301573\n",
      "When time is : 693, get best_k: 4.082622851778634 best_b: -4.517743083003907, and the loss is: 5.331424479646657\n",
      "When time is : 694, get best_k: 4.08388927667982 best_b: -4.517577075098769, and the loss is: 5.329822752731083\n",
      "When time is : 695, get best_k: 4.0851296422924674 best_b: -4.517415019762801, and the loss is: 5.328257983946127\n",
      "When time is : 696, get best_k: 4.086370007905115 best_b: -4.517252964426833, and the loss is: 5.3266932151611694\n",
      "When time is : 697, get best_k: 4.087610373517763 best_b: -4.517090909090864, and the loss is: 5.325128446376219\n",
      "When time is : 698, get best_k: 4.088850739130411 best_b: -4.516928853754896, and the loss is: 5.323563677591259\n",
      "When time is : 699, get best_k: 4.090091104743059 best_b: -4.516766798418928, and the loss is: 5.321998908806302\n",
      "When time is : 700, get best_k: 4.091331470355707 best_b: -4.51660474308296, and the loss is: 5.320441599302539\n",
      "When time is : 701, get best_k: 4.092547666007881 best_b: -4.516446640316161, and the loss is: 5.3189482045955385\n",
      "When time is : 702, get best_k: 4.093740664031596 best_b: -4.516292490118532, and the loss is: 5.3175011980275135\n",
      "When time is : 703, get best_k: 4.094933662055312 best_b: -4.516138339920904, and the loss is: 5.316054191459497\n",
      "When time is : 704, get best_k: 4.096126660079028 best_b: -4.515984189723275, and the loss is: 5.314607184891483\n",
      "When time is : 705, get best_k: 4.097319658102744 best_b: -4.515830039525646, and the loss is: 5.313160178323463\n",
      "When time is : 706, get best_k: 4.098512656126459 best_b: -4.515675889328017, and the loss is: 5.311713171755447\n",
      "When time is : 707, get best_k: 4.099705654150175 best_b: -4.515521739130389, and the loss is: 5.310274449452876\n",
      "When time is : 708, get best_k: 4.100873375494048 best_b: -4.51537154150193, and the loss is: 5.308888316988346\n",
      "When time is : 709, get best_k: 4.1020410968379215 best_b: -4.515221343873472, and the loss is: 5.307502184523818\n",
      "When time is : 710, get best_k: 4.103208818181795 best_b: -4.515071146245014, and the loss is: 5.306116052059288\n",
      "When time is : 711, get best_k: 4.104376539525668 best_b: -4.514920948616556, and the loss is: 5.3047451902401335\n",
      "When time is : 712, get best_k: 4.105520071146222 best_b: -4.514774703557268, and the loss is: 5.303442316841012\n",
      "When time is : 713, get best_k: 4.106640476284562 best_b: -4.514632411067149, and the loss is: 5.302178965407556\n",
      "When time is : 714, get best_k: 4.107738727272704 best_b: -4.5144940711462, and the loss is: 5.300953672240877\n",
      "When time is : 715, get best_k: 4.108836978260846 best_b: -4.514355731225251, and the loss is: 5.299728379074196\n",
      "When time is : 716, get best_k: 4.109935229248988 best_b: -4.514217391304302, and the loss is: 5.298531523231779\n",
      "When time is : 717, get best_k: 4.111007974308277 best_b: -4.514083003952524, and the loss is: 5.297362681309227\n",
      "When time is : 718, get best_k: 4.112080719367565 best_b: -4.513948616600746, and the loss is: 5.296193839386682\n",
      "When time is : 719, get best_k: 4.113153464426854 best_b: -4.513814229248967, and the loss is: 5.295024997464134\n",
      "When time is : 720, get best_k: 4.114226209486143 best_b: -4.513679841897189, and the loss is: 5.293863015499927\n",
      "When time is : 721, get best_k: 4.1152753063240874 best_b: -4.5135494071145805, and the loss is: 5.29275803556472\n",
      "When time is : 722, get best_k: 4.116301335968356 best_b: -4.513422924901142, and the loss is: 5.29168930098349\n",
      "When time is : 723, get best_k: 4.117327365612625 best_b: -4.513296442687703, and the loss is: 5.290641003667673\n",
      "When time is : 724, get best_k: 4.118327169960451 best_b: -4.513173913043434, and the loss is: 5.289626381420021\n",
      "When time is : 725, get best_k: 4.119326974308277 best_b: -4.513051383399165, and the loss is: 5.288611759172365\n",
      "When time is : 726, get best_k: 4.120326778656103 best_b: -4.512928853754896, and the loss is: 5.287597136924708\n",
      "When time is : 727, get best_k: 4.1213265830039285 best_b: -4.512806324110627, and the loss is: 5.286582514677051\n",
      "When time is : 728, get best_k: 4.122326387351754 best_b: -4.512683794466358, and the loss is: 5.285568919608948\n",
      "When time is : 729, get best_k: 4.123301345849778 best_b: -4.512565217391259, and the loss is: 5.284622121519773\n",
      "When time is : 730, get best_k: 4.124252035573098 best_b: -4.5124505928853305, and the loss is: 5.283713693349739\n",
      "When time is : 731, get best_k: 4.125178847826062 best_b: -4.5123399209485715, and the loss is: 5.2828424641199145\n",
      "When time is : 732, get best_k: 4.126105660079026 best_b: -4.5122292490118125, and the loss is: 5.281977800995222\n",
      "When time is : 733, get best_k: 4.127007839920923 best_b: -4.512122529644223, and the loss is: 5.281152483504677\n",
      "When time is : 734, get best_k: 4.12791001976282 best_b: -4.512015810276634, and the loss is: 5.280327166014131\n",
      "When time is : 735, get best_k: 4.128812199604717 best_b: -4.511909090909045, and the loss is: 5.279501848523591\n",
      "When time is : 736, get best_k: 4.129714379446614 best_b: -4.511802371541456, and the loss is: 5.278676531033053\n",
      "When time is : 737, get best_k: 4.1306165592885105 best_b: -4.5116956521738665, and the loss is: 5.277851213542503\n",
      "When time is : 738, get best_k: 4.131518739130407 best_b: -4.511588932806277, and the loss is: 5.277025896051958\n",
      "When time is : 739, get best_k: 4.132420918972304 best_b: -4.511482213438688, and the loss is: 5.276211794548197\n",
      "When time is : 740, get best_k: 4.133300225296415 best_b: -4.5113794466402695, and the loss is: 5.275447639321075\n",
      "When time is : 741, get best_k: 4.134155800395229 best_b: -4.511280632411021, and the loss is: 5.274705866319457\n",
      "When time is : 742, get best_k: 4.135011375494043 best_b: -4.511181818181772, and the loss is: 5.27396409331785\n",
      "When time is : 743, get best_k: 4.135866950592858 best_b: -4.511083003952523, and the loss is: 5.273222320316238\n",
      "When time is : 744, get best_k: 4.136722525691672 best_b: -4.510984189723274, and the loss is: 5.272480547314626\n",
      "When time is : 745, get best_k: 4.137578100790487 best_b: -4.510885375494025, and the loss is: 5.271743987132019\n",
      "When time is : 746, get best_k: 4.13840815810274 best_b: -4.510790513833946, and the loss is: 5.271045993255843\n",
      "When time is : 747, get best_k: 4.139238215414993 best_b: -4.510695652173867, and the loss is: 5.270352446484641\n",
      "When time is : 748, get best_k: 4.140042956521713 best_b: -4.510604743082958, and the loss is: 5.269696573772989\n",
      "When time is : 749, get best_k: 4.140847697628432 best_b: -4.510513833992048, and the loss is: 5.269040701061336\n",
      "When time is : 750, get best_k: 4.141652438735152 best_b: -4.510422924901139, and the loss is: 5.268384828349677\n",
      "When time is : 751, get best_k: 4.1424571798418715 best_b: -4.51033201581023, and the loss is: 5.267728955638024\n",
      "When time is : 752, get best_k: 4.143261920948591 best_b: -4.51024110671932, and the loss is: 5.267073082926368\n",
      "When time is : 753, get best_k: 4.144066662055311 best_b: -4.510150197628411, and the loss is: 5.2664172102147235\n",
      "When time is : 754, get best_k: 4.14487140316203 best_b: -4.5100592885375015, and the loss is: 5.265785459015351\n",
      "When time is : 755, get best_k: 4.145632539525667 best_b: -4.5099762845849325, and the loss is: 5.265199240795163\n",
      "When time is : 756, get best_k: 4.146393675889303 best_b: -4.5098932806323635, and the loss is: 5.26461302257496\n",
      "When time is : 757, get best_k: 4.14715481225294 best_b: -4.5098102766797945, and the loss is: 5.264026804354769\n",
      "When time is : 758, get best_k: 4.147915948616577 best_b: -4.5097272727272255, and the loss is: 5.26344058613458\n",
      "When time is : 759, get best_k: 4.148677084980213 best_b: -4.5096442687746565, and the loss is: 5.2628543679143975\n",
      "When time is : 760, get best_k: 4.14943822134385 best_b: -4.5095612648220875, and the loss is: 5.262268149694194\n",
      "When time is : 761, get best_k: 4.1501993577074865 best_b: -4.5094782608695185, and the loss is: 5.261681931474006\n",
      "When time is : 762, get best_k: 4.150960494071123 best_b: -4.5093952569169495, and the loss is: 5.261095713253816\n",
      "When time is : 763, get best_k: 4.15172163043476 best_b: -4.5093122529643805, and the loss is: 5.260509495033621\n",
      "When time is : 764, get best_k: 4.152482766798396 best_b: -4.5092292490118115, and the loss is: 5.259923276813424\n",
      "When time is : 765, get best_k: 4.153243903162033 best_b: -4.5091462450592426, and the loss is: 5.259337058593237\n",
      "When time is : 766, get best_k: 4.15400503952567 best_b: -4.509063241106674, and the loss is: 5.258750840373045\n",
      "When time is : 767, get best_k: 4.154766175889306 best_b: -4.508980237154105, and the loss is: 5.258185444611852\n",
      "When time is : 768, get best_k: 4.1554810553359465 best_b: -4.508905138339875, and the loss is: 5.257668752156718\n",
      "When time is : 769, get best_k: 4.156195934782587 best_b: -4.5088300395256455, and the loss is: 5.257152059701583\n",
      "When time is : 770, get best_k: 4.156910814229227 best_b: -4.508754940711416, and the loss is: 5.256635367246463\n",
      "When time is : 771, get best_k: 4.157625693675867 best_b: -4.5086798418971865, and the loss is: 5.2561186747913355\n",
      "When time is : 772, get best_k: 4.158340573122508 best_b: -4.508604743082957, and the loss is: 5.25560198233621\n",
      "When time is : 773, get best_k: 4.159055452569148 best_b: -4.5085296442687275, and the loss is: 5.255085289881079\n",
      "When time is : 774, get best_k: 4.159770332015788 best_b: -4.508454545454498, and the loss is: 5.254579486171694\n",
      "When time is : 775, get best_k: 4.160460590909069 best_b: -4.508383399209439, and the loss is: 5.254097967043747\n",
      "When time is : 776, get best_k: 4.1611508498023495 best_b: -4.50831225296438, and the loss is: 5.253616447915813\n",
      "When time is : 777, get best_k: 4.16184110869563 best_b: -4.508241106719321, and the loss is: 5.253134928787871\n",
      "When time is : 778, get best_k: 4.162531367588911 best_b: -4.508169960474262, and the loss is: 5.252653409659934\n",
      "When time is : 779, get best_k: 4.1632216264821915 best_b: -4.5080988142292036, and the loss is: 5.252187534606795\n",
      "When time is : 780, get best_k: 4.163887474308279 best_b: -4.508031620553314, and the loss is: 5.251739666289209\n",
      "When time is : 781, get best_k: 4.164553322134366 best_b: -4.507964426877425, and the loss is: 5.251291797971627\n",
      "When time is : 782, get best_k: 4.165219169960453 best_b: -4.507897233201536, and the loss is: 5.250843929654048\n",
      "When time is : 783, get best_k: 4.1658850177865405 best_b: -4.507830039525647, and the loss is: 5.250396061336456\n",
      "When time is : 784, get best_k: 4.166550865612628 best_b: -4.507762845849758, and the loss is: 5.2499481930188665\n",
      "When time is : 785, get best_k: 4.167216713438715 best_b: -4.507695652173869, and the loss is: 5.2495164680777044\n",
      "When time is : 786, get best_k: 4.167857794466383 best_b: -4.507632411067149, and the loss is: 5.2491014837560925\n",
      "When time is : 787, get best_k: 4.168498875494051 best_b: -4.50756916996043, and the loss is: 5.2486864994344815\n",
      "When time is : 788, get best_k: 4.169139956521719 best_b: -4.5075059288537105, and the loss is: 5.248271515112862\n",
      "When time is : 789, get best_k: 4.169781037549387 best_b: -4.507442687746991, and the loss is: 5.247856530791243\n",
      "When time is : 790, get best_k: 4.170422118577055 best_b: -4.507379446640272, and the loss is: 5.247441546469636\n",
      "When time is : 791, get best_k: 4.171063199604723 best_b: -4.507316205533552, and the loss is: 5.247026562148014\n",
      "When time is : 792, get best_k: 4.171704280632391 best_b: -4.507252964426833, and the loss is: 5.246611577826405\n",
      "When time is : 793, get best_k: 4.172345361660059 best_b: -4.5071897233201135, and the loss is: 5.246196593504788\n",
      "When time is : 794, get best_k: 4.172986442687727 best_b: -4.507126482213394, and the loss is: 5.2458025023941275\n",
      "When time is : 795, get best_k: 4.173578820158083 best_b: -4.507071146245015, and the loss is: 5.2454485292573425\n",
      "When time is : 796, get best_k: 4.174171197628438 best_b: -4.507015810276636, and the loss is: 5.245094556120565\n",
      "When time is : 797, get best_k: 4.174763575098794 best_b: -4.506960474308257, and the loss is: 5.244740582983785\n",
      "When time is : 798, get best_k: 4.1753559525691495 best_b: -4.506905138339878, and the loss is: 5.244386609846999\n",
      "When time is : 799, get best_k: 4.175948330039505 best_b: -4.506849802371499, and the loss is: 5.244032636710219\n",
      "When time is : 800, get best_k: 4.176540707509861 best_b: -4.50679446640312, and the loss is: 5.24367866357344\n",
      "When time is : 801, get best_k: 4.177133084980216 best_b: -4.506739130434741, and the loss is: 5.243324690436655\n",
      "When time is : 802, get best_k: 4.177725462450572 best_b: -4.506683794466362, and the loss is: 5.242970717299875\n",
      "When time is : 803, get best_k: 4.178317839920927 best_b: -4.506628458497983, and the loss is: 5.242616744163096\n",
      "When time is : 804, get best_k: 4.178910217391283 best_b: -4.506573122529604, and the loss is: 5.242269817537498\n",
      "When time is : 805, get best_k: 4.179448005928832 best_b: -4.506525691699564, and the loss is: 5.24197835134275\n",
      "When time is : 806, get best_k: 4.179985794466382 best_b: -4.506478260869525, and the loss is: 5.241686885147988\n",
      "When time is : 807, get best_k: 4.180523583003931 best_b: -4.506430830039485, and the loss is: 5.241395418953232\n",
      "When time is : 808, get best_k: 4.181061371541481 best_b: -4.5063833992094455, and the loss is: 5.241103952758475\n",
      "When time is : 809, get best_k: 4.18159916007903 best_b: -4.506335968379406, and the loss is: 5.240812486563711\n",
      "When time is : 810, get best_k: 4.18213694861658 best_b: -4.506288537549366, and the loss is: 5.2405210203689565\n",
      "When time is : 811, get best_k: 4.182674737154129 best_b: -4.506241106719327, and the loss is: 5.240229554174203\n",
      "When time is : 812, get best_k: 4.183212525691679 best_b: -4.506193675889287, and the loss is: 5.23993808797944\n",
      "When time is : 813, get best_k: 4.183750314229228 best_b: -4.506146245059248, and the loss is: 5.239653946243788\n",
      "When time is : 814, get best_k: 4.1842650434782405 best_b: -4.506102766798378, and the loss is: 5.239387109684834\n",
      "When time is : 815, get best_k: 4.184779772727253 best_b: -4.506059288537508, and the loss is: 5.23912027312588\n",
      "When time is : 816, get best_k: 4.185294501976265 best_b: -4.506015810276638, and the loss is: 5.238853436566919\n",
      "When time is : 817, get best_k: 4.185809231225277 best_b: -4.5059723320157685, and the loss is: 5.238586600007964\n",
      "When time is : 818, get best_k: 4.186323960474289 best_b: -4.505928853754899, and the loss is: 5.238319763449004\n",
      "When time is : 819, get best_k: 4.186838689723301 best_b: -4.505885375494029, and the loss is: 5.2380593221061345\n",
      "When time is : 820, get best_k: 4.187329905138321 best_b: -4.50584584980233, and the loss is: 5.23782215974344\n",
      "When time is : 821, get best_k: 4.187795816205514 best_b: -4.5058102766798, and the loss is: 5.237612975474399\n",
      "When time is : 822, get best_k: 4.188239162055317 best_b: -4.505778656126441, and the loss is: 5.23741542007247\n",
      "When time is : 823, get best_k: 4.18868250790512 best_b: -4.505747035573081, and the loss is: 5.237217864670525\n",
      "When time is : 824, get best_k: 4.1891258537549225 best_b: -4.505715415019721, and the loss is: 5.237020309268598\n",
      "When time is : 825, get best_k: 4.189569199604725 best_b: -4.5056837944663615, and the loss is: 5.236822753866671\n",
      "When time is : 826, get best_k: 4.190012545454528 best_b: -4.505652173913002, and the loss is: 5.236633100082762\n",
      "When time is : 827, get best_k: 4.190433432806307 best_b: -4.505624505928812, and the loss is: 5.236455188402527\n",
      "When time is : 828, get best_k: 4.190854320158086 best_b: -4.505596837944622, and the loss is: 5.2362772767222925\n",
      "When time is : 829, get best_k: 4.1912752075098645 best_b: -4.505569169960432, and the loss is: 5.236099365042049\n",
      "When time is : 830, get best_k: 4.191696094861643 best_b: -4.505541501976242, and the loss is: 5.235921453361815\n",
      "When time is : 831, get best_k: 4.192116982213422 best_b: -4.505513833992052, and the loss is: 5.23574354168158\n",
      "When time is : 832, get best_k: 4.192537869565201 best_b: -4.505486166007862, and the loss is: 5.235565630001336\n",
      "When time is : 833, get best_k: 4.19295875691698 best_b: -4.505458498023672, and the loss is: 5.2353877183211\n",
      "When time is : 834, get best_k: 4.1933796442687585 best_b: -4.505430830039482, and the loss is: 5.2352098066408725\n",
      "When time is : 835, get best_k: 4.193800531620537 best_b: -4.505403162055292, and the loss is: 5.2350318949606365\n",
      "When time is : 836, get best_k: 4.194221418972316 best_b: -4.505375494071102, and the loss is: 5.234853983280396\n",
      "When time is : 837, get best_k: 4.194642306324095 best_b: -4.505347826086912, and the loss is: 5.234676071600155\n",
      "When time is : 838, get best_k: 4.195063193675874 best_b: -4.505320158102722, and the loss is: 5.234503897229801\n",
      "When time is : 839, get best_k: 4.19546051976283 best_b: -4.505296442687703, and the loss is: 5.234347002177841\n",
      "When time is : 840, get best_k: 4.195834758893264 best_b: -4.505276679841853, and the loss is: 5.234206556681015\n",
      "When time is : 841, get best_k: 4.196208998023699 best_b: -4.505256916996004, and the loss is: 5.234066111184193\n",
      "When time is : 842, get best_k: 4.196583237154133 best_b: -4.505237154150154, and the loss is: 5.233925665687367\n",
      "When time is : 843, get best_k: 4.196957476284568 best_b: -4.5052173913043045, and the loss is: 5.23378522019054\n",
      "When time is : 844, get best_k: 4.197331715415002 best_b: -4.505197628458455, and the loss is: 5.233644774693727\n",
      "When time is : 845, get best_k: 4.1977059545454365 best_b: -4.505177865612605, and the loss is: 5.233504329196896\n",
      "When time is : 846, get best_k: 4.198080193675871 best_b: -4.505158102766756, and the loss is: 5.233363883700072\n",
      "When time is : 847, get best_k: 4.198454432806305 best_b: -4.505138339920906, and the loss is: 5.23322343820325\n",
      "When time is : 848, get best_k: 4.19882867193674 best_b: -4.505118577075057, and the loss is: 5.233082992706423\n",
      "When time is : 849, get best_k: 4.199202911067174 best_b: -4.505098814229207, and the loss is: 5.232942547209595\n",
      "When time is : 850, get best_k: 4.199577150197609 best_b: -4.505079051383357, and the loss is: 5.232802101712771\n",
      "When time is : 851, get best_k: 4.199951389328043 best_b: -4.505059288537508, and the loss is: 5.232661656215951\n",
      "When time is : 852, get best_k: 4.200325628458478 best_b: -4.505039525691658, and the loss is: 5.232523704078995\n",
      "When time is : 853, get best_k: 4.20067473715413 best_b: -4.505023715414978, and the loss is: 5.23240157723277\n",
      "When time is : 854, get best_k: 4.201023845849782 best_b: -4.5050079051382985, and the loss is: 5.23227945038654\n",
      "When time is : 855, get best_k: 4.201372954545435 best_b: -4.504992094861619, and the loss is: 5.2321573235403065\n",
      "When time is : 856, get best_k: 4.201722063241087 best_b: -4.504976284584939, and the loss is: 5.2320351966940795\n",
      "When time is : 857, get best_k: 4.20207117193674 best_b: -4.504960474308259, and the loss is: 5.231913069847853\n",
      "When time is : 858, get best_k: 4.202420280632392 best_b: -4.504944664031579, and the loss is: 5.231790943001623\n",
      "When time is : 859, get best_k: 4.2027693893280444 best_b: -4.504928853754899, and the loss is: 5.231668816155397\n",
      "When time is : 860, get best_k: 4.203118498023697 best_b: -4.504913043478219, and the loss is: 5.231546689309162\n",
      "When time is : 861, get best_k: 4.203467606719349 best_b: -4.50489723320154, and the loss is: 5.231428806047958\n",
      "When time is : 862, get best_k: 4.203792355731207 best_b: -4.5048853754940295, and the loss is: 5.23132890322694\n",
      "When time is : 863, get best_k: 4.204094250988124 best_b: -4.50487747035569, and the loss is: 5.231237699989583\n",
      "When time is : 864, get best_k: 4.204396146245041 best_b: -4.5048695652173505, and the loss is: 5.231146496752218\n",
      "When time is : 865, get best_k: 4.204698041501958 best_b: -4.504861660079011, and the loss is: 5.231055293514863\n",
      "When time is : 866, get best_k: 4.204999936758875 best_b: -4.5048537549406715, and the loss is: 5.230964090277494\n",
      "When time is : 867, get best_k: 4.205301832015792 best_b: -4.504845849802332, and the loss is: 5.230872887040138\n",
      "When time is : 868, get best_k: 4.205603727272709 best_b: -4.504837944663993, and the loss is: 5.230781683802779\n",
      "When time is : 869, get best_k: 4.205905622529626 best_b: -4.504830039525653, and the loss is: 5.2306904805654115\n",
      "When time is : 870, get best_k: 4.206207517786543 best_b: -4.504822134387314, and the loss is: 5.230599277328048\n",
      "When time is : 871, get best_k: 4.2065094130434595 best_b: -4.504814229248974, and the loss is: 5.230508074090696\n",
      "When time is : 872, get best_k: 4.206811308300376 best_b: -4.504806324110635, and the loss is: 5.230416870853327\n",
      "When time is : 873, get best_k: 4.207113203557293 best_b: -4.504798418972295, and the loss is: 5.2303256676159675\n",
      "When time is : 874, get best_k: 4.20741509881421 best_b: -4.504790513833956, and the loss is: 5.230234464378608\n",
      "When time is : 875, get best_k: 4.207716994071127 best_b: -4.504782608695616, and the loss is: 5.2301432611412455\n",
      "When time is : 876, get best_k: 4.208018889328044 best_b: -4.504774703557277, and the loss is: 5.230052057903884\n",
      "When time is : 877, get best_k: 4.208320784584961 best_b: -4.504766798418937, and the loss is: 5.229960854666524\n",
      "When time is : 878, get best_k: 4.208622679841878 best_b: -4.504758893280598, and the loss is: 5.229869651429163\n",
      "When time is : 879, get best_k: 4.208924575098795 best_b: -4.504750988142258, and the loss is: 5.2297784481918015\n",
      "When time is : 880, get best_k: 4.209226470355712 best_b: -4.504743083003919, and the loss is: 5.229692806140867\n",
      "When time is : 881, get best_k: 4.209502254940692 best_b: -4.504739130434749, and the loss is: 5.22961673338075\n",
      "When time is : 882, get best_k: 4.2097780395256725 best_b: -4.504735177865579, and the loss is: 5.2295406606206365\n",
      "When time is : 883, get best_k: 4.210053824110653 best_b: -4.50473122529641, and the loss is: 5.229464587860518\n",
      "When time is : 884, get best_k: 4.210329608695633 best_b: -4.50472727272724, and the loss is: 5.229388515100404\n",
      "When time is : 885, get best_k: 4.210605393280614 best_b: -4.50472332015807, and the loss is: 5.229312442340291\n",
      "When time is : 886, get best_k: 4.210881177865594 best_b: -4.5047193675889, and the loss is: 5.2292363695801765\n",
      "When time is : 887, get best_k: 4.211156962450574 best_b: -4.504715415019731, and the loss is: 5.2291602968200595\n",
      "When time is : 888, get best_k: 4.211432747035555 best_b: -4.504711462450561, and the loss is: 5.229084224059941\n",
      "When time is : 889, get best_k: 4.211708531620535 best_b: -4.504707509881391, and the loss is: 5.229008151299824\n",
      "When time is : 890, get best_k: 4.211984316205515 best_b: -4.504703557312221, and the loss is: 5.228932078539713\n",
      "When time is : 891, get best_k: 4.212260100790496 best_b: -4.504699604743052, and the loss is: 5.228856005779595\n",
      "When time is : 892, get best_k: 4.212535885375476 best_b: -4.504695652173882, and the loss is: 5.228779933019478\n",
      "When time is : 893, get best_k: 4.212811669960456 best_b: -4.504691699604712, and the loss is: 5.228703860259366\n",
      "When time is : 894, get best_k: 4.213087454545437 best_b: -4.504687747035542, and the loss is: 5.228627787499247\n",
      "When time is : 895, get best_k: 4.213363239130417 best_b: -4.504683794466373, and the loss is: 5.2285517147391305\n",
      "When time is : 896, get best_k: 4.213639023715397 best_b: -4.504679841897203, and the loss is: 5.228475641979021\n",
      "When time is : 897, get best_k: 4.213914808300378 best_b: -4.504675889328033, and the loss is: 5.2283995692189\n",
      "When time is : 898, get best_k: 4.214190592885358 best_b: -4.5046719367588635, and the loss is: 5.228323496458787\n",
      "When time is : 899, get best_k: 4.214466377470338 best_b: -4.504667984189694, and the loss is: 5.22824742369867\n",
      "When time is : 900, get best_k: 4.214742162055319 best_b: -4.504664031620524, and the loss is: 5.228171350938555\n",
      "When time is : 901, get best_k: 4.215017946640299 best_b: -4.504660079051354, and the loss is: 5.228095278178436\n",
      "When time is : 902, get best_k: 4.215293731225279 best_b: -4.5046561264821845, and the loss is: 5.228019205418313\n",
      "When time is : 903, get best_k: 4.21556951581026 best_b: -4.504652173913015, and the loss is: 5.227943132658204\n",
      "When time is : 904, get best_k: 4.21584530039524 best_b: -4.504648221343845, and the loss is: 5.227867059898091\n",
      "When time is : 905, get best_k: 4.21612108498022 best_b: -4.504644268774675, and the loss is: 5.227790987137967\n",
      "When time is : 906, get best_k: 4.216396869565201 best_b: -4.5046403162055055, and the loss is: 5.227714914377862\n",
      "When time is : 907, get best_k: 4.216672654150181 best_b: -4.504636363636336, and the loss is: 5.227638841617744\n",
      "When time is : 908, get best_k: 4.2169484387351615 best_b: -4.504632411067166, and the loss is: 5.227562768857629\n",
      "When time is : 909, get best_k: 4.217224223320142 best_b: -4.504628458497996, and the loss is: 5.227486696097508\n",
      "When time is : 910, get best_k: 4.217500007905122 best_b: -4.504624505928827, and the loss is: 5.227410623337391\n",
      "When time is : 911, get best_k: 4.2177757924901025 best_b: -4.504620553359657, and the loss is: 5.227334550577278\n",
      "When time is : 912, get best_k: 4.218051577075083 best_b: -4.504616600790487, and the loss is: 5.2272584778171645\n",
      "When time is : 913, get best_k: 4.218327361660063 best_b: -4.504612648221317, and the loss is: 5.227182405057046\n",
      "When time is : 914, get best_k: 4.2186031462450435 best_b: -4.504608695652148, and the loss is: 5.227106332296931\n",
      "When time is : 915, get best_k: 4.218878930830024 best_b: -4.504604743082978, and the loss is: 5.227030259536819\n",
      "When time is : 916, get best_k: 4.219154715415004 best_b: -4.504600790513808, and the loss is: 5.2269541867766955\n",
      "When time is : 917, get best_k: 4.2194304999999845 best_b: -4.504596837944638, and the loss is: 5.226878114016583\n",
      "When time is : 918, get best_k: 4.219706284584965 best_b: -4.504592885375469, and the loss is: 5.226802041256471\n",
      "When time is : 919, get best_k: 4.219982069169945 best_b: -4.504588932806299, and the loss is: 5.226725968496343\n",
      "When time is : 920, get best_k: 4.220257853754926 best_b: -4.504584980237129, and the loss is: 5.22664989573624\n",
      "When time is : 921, get best_k: 4.220533638339906 best_b: -4.504581027667959, and the loss is: 5.226573822976119\n",
      "When time is : 922, get best_k: 4.220809422924886 best_b: -4.50457707509879, and the loss is: 5.226497750216006\n",
      "When time is : 923, get best_k: 4.221085207509867 best_b: -4.50457312252962, and the loss is: 5.226421677455895\n",
      "When time is : 924, get best_k: 4.221360992094847 best_b: -4.50456916996045, and the loss is: 5.226345604695768\n",
      "When time is : 925, get best_k: 4.221636776679827 best_b: -4.5045652173912805, and the loss is: 5.226269531935651\n",
      "When time is : 926, get best_k: 4.221912561264808 best_b: -4.504561264822111, and the loss is: 5.226193459175544\n",
      "When time is : 927, get best_k: 4.222188345849788 best_b: -4.504557312252941, and the loss is: 5.226117386415424\n",
      "When time is : 928, get best_k: 4.222464130434768 best_b: -4.504553359683771, and the loss is: 5.2260413136553145\n",
      "When time is : 929, get best_k: 4.222739915019749 best_b: -4.5045494071146015, and the loss is: 5.225969322481619\n",
      "When time is : 930, get best_k: 4.222990047430816 best_b: -4.5045494071146015, and the loss is: 5.225911871402795\n",
      "When time is : 931, get best_k: 4.223216962450579 best_b: -4.504553359683771, and the loss is: 5.2258603653537925\n",
      "When time is : 932, get best_k: 4.223443877470341 best_b: -4.504557312252941, and the loss is: 5.2258088593047916\n",
      "When time is : 933, get best_k: 4.223670792490104 best_b: -4.504561264822111, and the loss is: 5.225757353255797\n",
      "When time is : 934, get best_k: 4.223897707509867 best_b: -4.5045652173912805, and the loss is: 5.225706583853838\n",
      "When time is : 935, get best_k: 4.224099258893266 best_b: -4.50457312252962, and the loss is: 5.225665898402467\n",
      "When time is : 936, get best_k: 4.224300810276665 best_b: -4.504581027667959, and the loss is: 5.225625212951113\n",
      "When time is : 937, get best_k: 4.224502361660064 best_b: -4.504588932806299, and the loss is: 5.22558452749975\n",
      "When time is : 938, get best_k: 4.224703913043463 best_b: -4.504596837944638, and the loss is: 5.225543842048388\n",
      "When time is : 939, get best_k: 4.224905464426862 best_b: -4.504604743082978, and the loss is: 5.225503156597027\n",
      "When time is : 940, get best_k: 4.225107015810261 best_b: -4.504612648221317, and the loss is: 5.225462471145663\n",
      "When time is : 941, get best_k: 4.22530856719366 best_b: -4.504620553359657, and the loss is: 5.225421785694302\n",
      "When time is : 942, get best_k: 4.225510118577059 best_b: -4.504628458497996, and the loss is: 5.225381100242937\n",
      "When time is : 943, get best_k: 4.225711669960458 best_b: -4.504636363636336, and the loss is: 5.225340414791571\n",
      "When time is : 944, get best_k: 4.225913221343857 best_b: -4.504644268774675, and the loss is: 5.225299729340217\n",
      "When time is : 945, get best_k: 4.226114772727256 best_b: -4.504652173913015, and the loss is: 5.225259043888856\n",
      "When time is : 946, get best_k: 4.226316324110655 best_b: -4.504660079051354, and the loss is: 5.225218358437491\n",
      "When time is : 947, get best_k: 4.226517875494054 best_b: -4.504667984189694, and the loss is: 5.225177672986125\n",
      "When time is : 948, get best_k: 4.2267194268774535 best_b: -4.504675889328033, and the loss is: 5.225136987534762\n",
      "When time is : 949, get best_k: 4.226920978260853 best_b: -4.504683794466373, and the loss is: 5.225096302083404\n",
      "When time is : 950, get best_k: 4.227122529644252 best_b: -4.504691699604712, and the loss is: 5.225055616632039\n",
      "When time is : 951, get best_k: 4.227324081027651 best_b: -4.504699604743052, and the loss is: 5.2250149311806755\n",
      "When time is : 952, get best_k: 4.22752563241105 best_b: -4.504707509881391, and the loss is: 5.224974245729314\n",
      "When time is : 953, get best_k: 4.227727183794449 best_b: -4.504715415019731, and the loss is: 5.224933560277955\n",
      "When time is : 954, get best_k: 4.227928735177848 best_b: -4.50472332015807, and the loss is: 5.224892874826588\n",
      "When time is : 955, get best_k: 4.228130286561247 best_b: -4.50473122529641, and the loss is: 5.2248527414093155\n",
      "When time is : 956, get best_k: 4.228306873517768 best_b: -4.50474308300392, and the loss is: 5.224821417850872\n",
      "When time is : 957, get best_k: 4.22848346047429 best_b: -4.50475494071143, and the loss is: 5.224790094292437\n",
      "When time is : 958, get best_k: 4.228660047430811 best_b: -4.50476679841894, and the loss is: 5.224758770733991\n",
      "When time is : 959, get best_k: 4.228836634387332 best_b: -4.50477865612645, and the loss is: 5.224727447175554\n",
      "When time is : 960, get best_k: 4.229013221343854 best_b: -4.50479051383396, and the loss is: 5.224696123617117\n",
      "When time is : 961, get best_k: 4.229189808300375 best_b: -4.50480237154147, and the loss is: 5.224664800058665\n",
      "When time is : 962, get best_k: 4.229366395256896 best_b: -4.50481422924898, and the loss is: 5.2246362618480395\n",
      "When time is : 963, get best_k: 4.2295195197628255 best_b: -4.50483003952566, and the loss is: 5.224612564768875\n",
      "When time is : 964, get best_k: 4.229672644268755 best_b: -4.50484584980234, and the loss is: 5.2245888676897145\n",
      "When time is : 965, get best_k: 4.229825768774684 best_b: -4.50486166007902, and the loss is: 5.224565170610553\n",
      "When time is : 966, get best_k: 4.229978893280613 best_b: -4.5048774703557, and the loss is: 5.224541473531382\n",
      "When time is : 967, get best_k: 4.230132017786542 best_b: -4.50489328063238, and the loss is: 5.224520837991964\n",
      "When time is : 968, get best_k: 4.230260656126463 best_b: -4.504913043478229, and the loss is: 5.224503899599387\n",
      "When time is : 969, get best_k: 4.2303892944663835 best_b: -4.504932806324079, and the loss is: 5.224486961206815\n",
      "When time is : 970, get best_k: 4.230517932806304 best_b: -4.504952569169928, and the loss is: 5.22447002281424\n",
      "When time is : 971, get best_k: 4.230646571146225 best_b: -4.504972332015778, and the loss is: 5.224453084421674\n",
      "When time is : 972, get best_k: 4.230775209486145 best_b: -4.5049920948616275, and the loss is: 5.224436146029093\n",
      "When time is : 973, get best_k: 4.230903847826066 best_b: -4.505011857707477, and the loss is: 5.224419207636521\n",
      "When time is : 974, get best_k: 4.2310324861659865 best_b: -4.505031620553327, and the loss is: 5.224402269243946\n",
      "When time is : 975, get best_k: 4.231161124505907 best_b: -4.505051383399176, and the loss is: 5.224385330851374\n",
      "When time is : 976, get best_k: 4.231289762845828 best_b: -4.505071146245026, and the loss is: 5.224368392458796\n",
      "When time is : 977, get best_k: 4.231418401185748 best_b: -4.5050909090908755, and the loss is: 5.224351454066226\n",
      "When time is : 978, get best_k: 4.231547039525669 best_b: -4.505110671936725, and the loss is: 5.224334515673652\n",
      "When time is : 979, get best_k: 4.2316756778655895 best_b: -4.505130434782575, and the loss is: 5.224317577281078\n",
      "When time is : 980, get best_k: 4.23180431620551 best_b: -4.505150197628424, and the loss is: 5.224300638888506\n",
      "When time is : 981, get best_k: 4.231932954545431 best_b: -4.505169960474274, and the loss is: 5.224283700495933\n",
      "When time is : 982, get best_k: 4.232061592885351 best_b: -4.5051897233201235, and the loss is: 5.224266762103356\n",
      "When time is : 983, get best_k: 4.232190231225272 best_b: -4.505209486165973, and the loss is: 5.224249823710785\n",
      "When time is : 984, get best_k: 4.2323188695651925 best_b: -4.505229249011823, and the loss is: 5.2242328853182105\n",
      "When time is : 985, get best_k: 4.232447507905113 best_b: -4.505249011857672, and the loss is: 5.224215946925636\n",
      "When time is : 986, get best_k: 4.232576146245034 best_b: -4.505268774703522, and the loss is: 5.224199008533066\n",
      "When time is : 987, get best_k: 4.232704784584954 best_b: -4.505288537549371, and the loss is: 5.2241820701404915\n",
      "When time is : 988, get best_k: 4.232833422924875 best_b: -4.505308300395221, and the loss is: 5.224165131747919\n",
      "When time is : 989, get best_k: 4.232962061264796 best_b: -4.505328063241071, and the loss is: 5.224148193355345\n",
      "When time is : 990, get best_k: 4.233090699604716 best_b: -4.50534782608692, and the loss is: 5.224131254962763\n",
      "When time is : 991, get best_k: 4.233219337944637 best_b: -4.50536758893277, and the loss is: 5.224114316570191\n",
      "When time is : 992, get best_k: 4.233347976284557 best_b: -4.505387351778619, and the loss is: 5.224097378177616\n",
      "When time is : 993, get best_k: 4.233476614624478 best_b: -4.505407114624469, and the loss is: 5.224080439785049\n",
      "When time is : 994, get best_k: 4.233605252964399 best_b: -4.505426877470319, and the loss is: 5.224063501392475\n",
      "When time is : 995, get best_k: 4.233733891304319 best_b: -4.505446640316168, and the loss is: 5.224046562999905\n",
      "When time is : 996, get best_k: 4.23386252964424 best_b: -4.505466403162018, and the loss is: 5.22402962460733\n",
      "When time is : 997, get best_k: 4.23399116798416 best_b: -4.505486166007867, and the loss is: 5.224012686214756\n",
      "When time is : 998, get best_k: 4.234119806324081 best_b: -4.505505928853717, and the loss is: 5.2239957478221735\n",
      "When time is : 999, get best_k: 4.234248444664002 best_b: -4.5055256916995665, and the loss is: 5.223978809429601\n",
      "When time is : 1000, get best_k: 4.234377083003922 best_b: -4.505545454545416, and the loss is: 5.223961871037032\n",
      "When time is : 1001, get best_k: 4.234505721343843 best_b: -4.505565217391266, and the loss is: 5.223944932644455\n",
      "When time is : 1002, get best_k: 4.2346343596837634 best_b: -4.505584980237115, and the loss is: 5.223927994251882\n",
      "When time is : 1003, get best_k: 4.234762998023684 best_b: -4.505604743082965, and the loss is: 5.223911055859305\n",
      "When time is : 1004, get best_k: 4.234891636363605 best_b: -4.5056245059288145, and the loss is: 5.223894117466735\n",
      "When time is : 1005, get best_k: 4.235020274703525 best_b: -4.505644268774664, and the loss is: 5.223877179074168\n",
      "When time is : 1006, get best_k: 4.235148913043446 best_b: -4.505664031620514, and the loss is: 5.223860240681588\n",
      "When time is : 1007, get best_k: 4.2352775513833665 best_b: -4.505683794466363, and the loss is: 5.223843302289015\n",
      "When time is : 1008, get best_k: 4.235406189723287 best_b: -4.505703557312213, and the loss is: 5.223827773605636\n",
      "When time is : 1009, get best_k: 4.235511958497991 best_b: -4.505727272727232, and the loss is: 5.2238160241510245\n",
      "When time is : 1010, get best_k: 4.235617727272695 best_b: -4.5057509881422515, and the loss is: 5.223805116588406\n",
      "When time is : 1011, get best_k: 4.235699507905106 best_b: -4.5057786561264415, and the loss is: 5.2237976629992335\n",
      "When time is : 1012, get best_k: 4.235781288537517 best_b: -4.505806324110631, and the loss is: 5.2237902094100415\n",
      "When time is : 1013, get best_k: 4.235863069169928 best_b: -4.505833992094821, and the loss is: 5.223782755820852\n",
      "When time is : 1014, get best_k: 4.235944849802339 best_b: -4.505861660079011, and the loss is: 5.223775302231667\n",
      "When time is : 1015, get best_k: 4.23602663043475 best_b: -4.505889328063201, and the loss is: 5.223767848642479\n",
      "When time is : 1016, get best_k: 4.2361084110671605 best_b: -4.505916996047391, and the loss is: 5.223760395053294\n",
      "When time is : 1017, get best_k: 4.2361901916995715 best_b: -4.505944664031581, and the loss is: 5.223752941464105\n",
      "When time is : 1018, get best_k: 4.236271972331982 best_b: -4.505972332015771, and the loss is: 5.22374548787492\n",
      "When time is : 1019, get best_k: 4.236353752964393 best_b: -4.505999999999961, and the loss is: 5.2237380342857325\n",
      "When time is : 1020, get best_k: 4.236435533596804 best_b: -4.506027667984151, and the loss is: 5.223730580696539\n",
      "When time is : 1021, get best_k: 4.236517314229215 best_b: -4.506055335968341, and the loss is: 5.223723127107361\n",
      "When time is : 1022, get best_k: 4.236599094861626 best_b: -4.506083003952531, and the loss is: 5.22371567351817\n",
      "When time is : 1023, get best_k: 4.236680875494037 best_b: -4.506110671936721, and the loss is: 5.223708622746307\n",
      "When time is : 1024, get best_k: 4.236736901185736 best_b: -4.506142292490081, and the loss is: 5.223704484008778\n",
      "When time is : 1025, get best_k: 4.236792926877436 best_b: -4.50617391304344, and the loss is: 5.223700345271262\n",
      "When time is : 1026, get best_k: 4.236848952569135 best_b: -4.5062055335968, and the loss is: 5.22369620653374\n",
      "When time is : 1027, get best_k: 4.236904978260834 best_b: -4.50623715415016, and the loss is: 5.2236920677962075\n",
      "When time is : 1028, get best_k: 4.236961003952533 best_b: -4.5062687747035195, and the loss is: 5.223687929058688\n",
      "When time is : 1029, get best_k: 4.237017029644233 best_b: -4.506300395256879, and the loss is: 5.223683790321157\n",
      "When time is : 1030, get best_k: 4.237073055335932 best_b: -4.506332015810239, and the loss is: 5.223679651583636\n",
      "When time is : 1031, get best_k: 4.237129081027631 best_b: -4.506363636363599, and the loss is: 5.223675512846104\n",
      "When time is : 1032, get best_k: 4.2371851067193305 best_b: -4.506395256916958, and the loss is: 5.223671374108582\n",
      "When time is : 1033, get best_k: 4.23724113241103 best_b: -4.506426877470318, and the loss is: 5.22366723537106\n",
      "When time is : 1034, get best_k: 4.237297158102729 best_b: -4.506458498023678, and the loss is: 5.22366309663354\n",
      "When time is : 1035, get best_k: 4.237353183794428 best_b: -4.506490118577037, and the loss is: 5.223658957896009\n",
      "When time is : 1036, get best_k: 4.2374092094861275 best_b: -4.506521739130397, and the loss is: 5.223654819158482\n",
      "When time is : 1037, get best_k: 4.237465235177827 best_b: -4.506553359683757, and the loss is: 5.223650680420958\n",
      "When time is : 1038, get best_k: 4.237521260869526 best_b: -4.5065849802371165, and the loss is: 5.223646541683432\n",
      "When time is : 1039, get best_k: 4.237577286561225 best_b: -4.506616600790476, and the loss is: 5.223642402945898\n",
      "When time is : 1040, get best_k: 4.237633312252925 best_b: -4.506648221343836, and the loss is: 5.223638264208379\n",
      "When time is : 1041, get best_k: 4.237689337944624 best_b: -4.506679841897196, and the loss is: 5.223634125470856\n",
      "When time is : 1042, get best_k: 4.237745363636323 best_b: -4.506711462450555, and the loss is: 5.2236299867333305\n",
      "When time is : 1043, get best_k: 4.237801389328022 best_b: -4.506743083003915, and the loss is: 5.223625847995809\n",
      "When time is : 1044, get best_k: 4.237857415019722 best_b: -4.506774703557275, and the loss is: 5.223621709258279\n",
      "When time is : 1045, get best_k: 4.237913440711421 best_b: -4.506806324110634, and the loss is: 5.223617570520751\n",
      "When time is : 1046, get best_k: 4.23796946640312 best_b: -4.506837944663994, and the loss is: 5.223613431783224\n",
      "When time is : 1047, get best_k: 4.2380254920948195 best_b: -4.506869565217354, and the loss is: 5.223609293045704\n",
      "When time is : 1048, get best_k: 4.238081517786519 best_b: -4.5069011857707135, and the loss is: 5.223605985435299\n",
      "When time is : 1049, get best_k: 4.238114780632369 best_b: -4.506936758893243, and the loss is: 5.223603613571339\n",
      "When time is : 1050, get best_k: 4.238148043478219 best_b: -4.506972332015772, and the loss is: 5.223601241707381\n",
      "When time is : 1051, get best_k: 4.238181306324069 best_b: -4.507007905138302, and the loss is: 5.223598869843415\n",
      "When time is : 1052, get best_k: 4.238214569169919 best_b: -4.507043478260831, and the loss is: 5.223596497979463\n",
      "When time is : 1053, get best_k: 4.2382478320157695 best_b: -4.507079051383361, and the loss is: 5.223594126115499\n",
      "When time is : 1054, get best_k: 4.23828109486162 best_b: -4.50711462450589, and the loss is: 5.223591754251545\n",
      "When time is : 1055, get best_k: 4.23831435770747 best_b: -4.50715019762842, and the loss is: 5.223589382387579\n",
      "When time is : 1056, get best_k: 4.23834762055332 best_b: -4.507185770750949, and the loss is: 5.223587010523622\n",
      "When time is : 1057, get best_k: 4.23838088339917 best_b: -4.5072213438734785, and the loss is: 5.2235846386596565\n",
      "When time is : 1058, get best_k: 4.23841414624502 best_b: -4.507256916996008, and the loss is: 5.223582266795695\n",
      "When time is : 1059, get best_k: 4.23844740909087 best_b: -4.507292490118537, and the loss is: 5.22357989493174\n",
      "When time is : 1060, get best_k: 4.2384806719367205 best_b: -4.507328063241067, and the loss is: 5.223577523067771\n",
      "When time is : 1061, get best_k: 4.238513934782571 best_b: -4.507363636363596, and the loss is: 5.223575151203814\n",
      "When time is : 1062, get best_k: 4.238547197628421 best_b: -4.507399209486126, and the loss is: 5.223572779339853\n",
      "When time is : 1063, get best_k: 4.238580460474271 best_b: -4.507434782608655, and the loss is: 5.223570407475893\n",
      "When time is : 1064, get best_k: 4.238613723320121 best_b: -4.507470355731185, and the loss is: 5.223568035611925\n",
      "When time is : 1065, get best_k: 4.238646986165971 best_b: -4.507505928853714, and the loss is: 5.223565663747975\n",
      "When time is : 1066, get best_k: 4.238680249011821 best_b: -4.5075415019762435, and the loss is: 5.223563291884012\n",
      "When time is : 1067, get best_k: 4.2387135118576715 best_b: -4.507577075098773, and the loss is: 5.223560920020048\n",
      "When time is : 1068, get best_k: 4.238746774703522 best_b: -4.507612648221302, and the loss is: 5.22355854815609\n",
      "When time is : 1069, get best_k: 4.238780037549372 best_b: -4.507648221343832, and the loss is: 5.223556176292131\n",
      "When time is : 1070, get best_k: 4.238813300395222 best_b: -4.507683794466361, and the loss is: 5.2235538044281675\n",
      "When time is : 1071, get best_k: 4.238846563241072 best_b: -4.507719367588891, and the loss is: 5.223551432564205\n",
      "When time is : 1072, get best_k: 4.238879826086922 best_b: -4.50775494071142, and the loss is: 5.223549060700246\n",
      "When time is : 1073, get best_k: 4.238913088932772 best_b: -4.50779051383395, and the loss is: 5.223546688836292\n",
      "When time is : 1074, get best_k: 4.238946351778623 best_b: -4.507826086956479, and the loss is: 5.223544316972322\n",
      "When time is : 1075, get best_k: 4.238979614624473 best_b: -4.5078616600790085, and the loss is: 5.223541945108369\n",
      "When time is : 1076, get best_k: 4.239012877470323 best_b: -4.507897233201538, and the loss is: 5.223539573244402\n",
      "When time is : 1077, get best_k: 4.239046140316173 best_b: -4.507932806324067, and the loss is: 5.223537201380445\n",
      "When time is : 1078, get best_k: 4.239079403162023 best_b: -4.507968379446597, and the loss is: 5.22353482951649\n",
      "When time is : 1079, get best_k: 4.239112666007873 best_b: -4.508003952569126, and the loss is: 5.2235324576525235\n",
      "When time is : 1080, get best_k: 4.239145928853723 best_b: -4.508039525691656, and the loss is: 5.223530085788565\n",
      "When time is : 1081, get best_k: 4.239179191699574 best_b: -4.508075098814185, and the loss is: 5.223527713924598\n",
      "When time is : 1082, get best_k: 4.239212454545424 best_b: -4.5081106719367146, and the loss is: 5.2235253420606425\n",
      "When time is : 1083, get best_k: 4.239245717391274 best_b: -4.508146245059244, and the loss is: 5.223522970196682\n",
      "When time is : 1084, get best_k: 4.239278980237124 best_b: -4.508181818181773, and the loss is: 5.22352059833272\n",
      "When time is : 1085, get best_k: 4.239312243082974 best_b: -4.508217391304303, and the loss is: 5.223518226468759\n",
      "When time is : 1086, get best_k: 4.239345505928824 best_b: -4.508252964426832, and the loss is: 5.223515854604803\n",
      "When time is : 1087, get best_k: 4.2393787687746745 best_b: -4.508288537549362, and the loss is: 5.22351348274084\n",
      "When time is : 1088, get best_k: 4.239412031620525 best_b: -4.508324110671891, and the loss is: 5.2235111108768875\n",
      "When time is : 1089, get best_k: 4.239445294466375 best_b: -4.508359683794421, and the loss is: 5.223508739012918\n",
      "When time is : 1090, get best_k: 4.239478557312225 best_b: -4.50839525691695, and the loss is: 5.223506367148958\n",
      "When time is : 1091, get best_k: 4.239511820158075 best_b: -4.5084308300394795, and the loss is: 5.223503995284998\n",
      "When time is : 1092, get best_k: 4.239545083003925 best_b: -4.508466403162009, and the loss is: 5.223501623421038\n",
      "When time is : 1093, get best_k: 4.239578345849775 best_b: -4.508501976284538, and the loss is: 5.223499251557079\n",
      "When time is : 1094, get best_k: 4.2396116086956255 best_b: -4.508537549407068, and the loss is: 5.223496879693111\n",
      "When time is : 1095, get best_k: 4.239644871541476 best_b: -4.508573122529597, and the loss is: 5.2234945078291615\n",
      "When time is : 1096, get best_k: 4.239678134387326 best_b: -4.508608695652127, and the loss is: 5.223492135965193\n",
      "When time is : 1097, get best_k: 4.239711397233176 best_b: -4.508644268774656, and the loss is: 5.22348976410124\n",
      "When time is : 1098, get best_k: 4.239744660079026 best_b: -4.508679841897186, and the loss is: 5.2234873922372795\n",
      "When time is : 1099, get best_k: 4.239777922924876 best_b: -4.508715415019715, and the loss is: 5.223485020373314\n",
      "When time is : 1100, get best_k: 4.239811185770726 best_b: -4.5087509881422445, and the loss is: 5.223482648509353\n",
      "When time is : 1101, get best_k: 4.2398444486165765 best_b: -4.508786561264774, and the loss is: 5.223480276645388\n",
      "When time is : 1102, get best_k: 4.239877711462427 best_b: -4.508822134387303, and the loss is: 5.2234779047814355\n",
      "When time is : 1103, get best_k: 4.239910974308277 best_b: -4.508857707509833, and the loss is: 5.22347553291747\n",
      "When time is : 1104, get best_k: 4.239944237154127 best_b: -4.508893280632362, and the loss is: 5.223473161053509\n",
      "When time is : 1105, get best_k: 4.239977499999977 best_b: -4.508928853754892, and the loss is: 5.223470789189553\n",
      "When time is : 1106, get best_k: 4.240010762845827 best_b: -4.508964426877421, and the loss is: 5.223468417325594\n",
      "When time is : 1107, get best_k: 4.240044025691677 best_b: -4.508999999999951, and the loss is: 5.223466045461624\n",
      "When time is : 1108, get best_k: 4.2400772885375275 best_b: -4.50903557312248, and the loss is: 5.223463673597665\n",
      "When time is : 1109, get best_k: 4.240110551383378 best_b: -4.5090711462450095, and the loss is: 5.223461301733711\n",
      "When time is : 1110, get best_k: 4.240143814229228 best_b: -4.509106719367539, and the loss is: 5.223458929869747\n",
      "When time is : 1111, get best_k: 4.240177077075078 best_b: -4.509142292490068, and the loss is: 5.223456558005788\n",
      "When time is : 1112, get best_k: 4.240210339920928 best_b: -4.509177865612598, and the loss is: 5.223454186141834\n",
      "When time is : 1113, get best_k: 4.240243602766778 best_b: -4.509213438735127, and the loss is: 5.2234518142778645\n",
      "When time is : 1114, get best_k: 4.240276865612628 best_b: -4.509249011857657, and the loss is: 5.223449442413903\n",
      "When time is : 1115, get best_k: 4.2403101284584785 best_b: -4.509284584980186, and the loss is: 5.223447070549947\n",
      "When time is : 1116, get best_k: 4.240343391304329 best_b: -4.509320158102716, and the loss is: 5.2234446986859835\n",
      "When time is : 1117, get best_k: 4.240376654150179 best_b: -4.509355731225245, and the loss is: 5.223442326822027\n",
      "When time is : 1118, get best_k: 4.240409916996029 best_b: -4.5093913043477745, and the loss is: 5.22343995495806\n",
      "When time is : 1119, get best_k: 4.240443179841879 best_b: -4.509426877470304, and the loss is: 5.2234375830941016\n",
      "When time is : 1120, get best_k: 4.240476442687729 best_b: -4.509462450592833, and the loss is: 5.223435211230142\n",
      "When time is : 1121, get best_k: 4.240509705533579 best_b: -4.509498023715363, and the loss is: 5.223432839366182\n",
      "When time is : 1122, get best_k: 4.24054296837943 best_b: -4.509533596837892, and the loss is: 5.2234304675022285\n",
      "When time is : 1123, get best_k: 4.24057623122528 best_b: -4.509569169960422, and the loss is: 5.223428095638257\n",
      "When time is : 1124, get best_k: 4.24060949407113 best_b: -4.509604743082951, and the loss is: 5.223425723774302\n",
      "When time is : 1125, get best_k: 4.24064275691698 best_b: -4.509640316205481, and the loss is: 5.223423351910343\n",
      "When time is : 1126, get best_k: 4.24067601976283 best_b: -4.50967588932801, and the loss is: 5.223420980046376\n",
      "When time is : 1127, get best_k: 4.24070928260868 best_b: -4.509711462450539, and the loss is: 5.223418608182416\n",
      "When time is : 1128, get best_k: 4.24074254545453 best_b: -4.509747035573069, and the loss is: 5.2234162363184575\n",
      "When time is : 1129, get best_k: 4.240775808300381 best_b: -4.509782608695598, and the loss is: 5.223413864454496\n",
      "When time is : 1130, get best_k: 4.240809071146231 best_b: -4.509818181818128, and the loss is: 5.22341149259054\n",
      "When time is : 1131, get best_k: 4.240842333992081 best_b: -4.509853754940657, and the loss is: 5.223409120726576\n",
      "When time is : 1132, get best_k: 4.240875596837931 best_b: -4.509889328063187, and the loss is: 5.223406748862615\n",
      "When time is : 1133, get best_k: 4.240908859683781 best_b: -4.509924901185716, and the loss is: 5.223404376998653\n",
      "When time is : 1134, get best_k: 4.240942122529631 best_b: -4.5099604743082455, and the loss is: 5.223402005134693\n",
      "When time is : 1135, get best_k: 4.2409753853754815 best_b: -4.509996047430775, and the loss is: 5.223399633270734\n",
      "When time is : 1136, get best_k: 4.241008648221332 best_b: -4.510031620553304, and the loss is: 5.223397261406772\n",
      "When time is : 1137, get best_k: 4.241041911067182 best_b: -4.510067193675834, and the loss is: 5.223394889542811\n",
      "When time is : 1138, get best_k: 4.241075173913032 best_b: -4.510102766798363, and the loss is: 5.223392517678854\n",
      "When time is : 1139, get best_k: 4.241108436758882 best_b: -4.510138339920893, and the loss is: 5.223390145814891\n",
      "When time is : 1140, get best_k: 4.241141699604732 best_b: -4.510173913043422, and the loss is: 5.223387773950931\n",
      "When time is : 1141, get best_k: 4.241174962450582 best_b: -4.510209486165952, and the loss is: 5.22338540208697\n",
      "When time is : 1142, get best_k: 4.2412082252964325 best_b: -4.510245059288481, and the loss is: 5.2233830302230135\n",
      "When time is : 1143, get best_k: 4.241241488142283 best_b: -4.5102806324110105, and the loss is: 5.223380658359045\n",
      "When time is : 1144, get best_k: 4.241274750988133 best_b: -4.51031620553354, and the loss is: 5.223378286495094\n",
      "When time is : 1145, get best_k: 4.241308013833983 best_b: -4.510351778656069, and the loss is: 5.223375914631125\n",
      "When time is : 1146, get best_k: 4.241341276679833 best_b: -4.510387351778599, and the loss is: 5.223373542767169\n",
      "When time is : 1147, get best_k: 4.241374539525683 best_b: -4.510422924901128, and the loss is: 5.2233711709032065\n",
      "When time is : 1148, get best_k: 4.241407802371533 best_b: -4.510458498023658, and the loss is: 5.22336879903924\n",
      "When time is : 1149, get best_k: 4.2414410652173835 best_b: -4.510494071146187, and the loss is: 5.223366427175286\n",
      "When time is : 1150, get best_k: 4.241474328063234 best_b: -4.510529644268717, and the loss is: 5.2233640553113245\n",
      "When time is : 1151, get best_k: 4.241507590909084 best_b: -4.510565217391246, and the loss is: 5.2233616834473695\n",
      "When time is : 1152, get best_k: 4.241540853754934 best_b: -4.5106007905137755, and the loss is: 5.223359311583404\n",
      "When time is : 1153, get best_k: 4.241574116600784 best_b: -4.510636363636305, and the loss is: 5.223356939719441\n",
      "When time is : 1154, get best_k: 4.241607379446634 best_b: -4.510671936758834, and the loss is: 5.223354567855486\n",
      "When time is : 1155, get best_k: 4.241640642292484 best_b: -4.510707509881364, and the loss is: 5.223352195991525\n",
      "When time is : 1156, get best_k: 4.2416739051383345 best_b: -4.510743083003893, and the loss is: 5.223349824127558\n",
      "When time is : 1157, get best_k: 4.241707167984185 best_b: -4.510778656126423, and the loss is: 5.2233474522636\n",
      "When time is : 1158, get best_k: 4.241740430830035 best_b: -4.510814229248952, and the loss is: 5.223345080399643\n",
      "When time is : 1159, get best_k: 4.241773693675885 best_b: -4.510849802371482, and the loss is: 5.223342708535683\n",
      "When time is : 1160, get best_k: 4.241806956521735 best_b: -4.510885375494011, and the loss is: 5.223340336671722\n",
      "When time is : 1161, get best_k: 4.241840219367585 best_b: -4.5109209486165405, and the loss is: 5.223337964807758\n",
      "When time is : 1162, get best_k: 4.241873482213435 best_b: -4.51095652173907, and the loss is: 5.223335592943796\n",
      "When time is : 1163, get best_k: 4.2419067450592856 best_b: -4.510992094861599, and the loss is: 5.223333221079841\n",
      "When time is : 1164, get best_k: 4.241940007905136 best_b: -4.511027667984129, and the loss is: 5.223330849215873\n",
      "When time is : 1165, get best_k: 4.241973270750986 best_b: -4.511063241106658, and the loss is: 5.2233284773519175\n",
      "When time is : 1166, get best_k: 4.242006533596836 best_b: -4.511098814229188, and the loss is: 5.22332610548796\n",
      "When time is : 1167, get best_k: 4.242039796442686 best_b: -4.511134387351717, and the loss is: 5.223323733623998\n",
      "When time is : 1168, get best_k: 4.242073059288536 best_b: -4.511169960474247, and the loss is: 5.223321361760029\n",
      "When time is : 1169, get best_k: 4.242106322134386 best_b: -4.511205533596776, and the loss is: 5.223318989896077\n",
      "When time is : 1170, get best_k: 4.242139584980237 best_b: -4.5112411067193054, and the loss is: 5.223316618032115\n",
      "When time is : 1171, get best_k: 4.242172847826087 best_b: -4.511276679841835, and the loss is: 5.223314246168149\n",
      "When time is : 1172, get best_k: 4.242206110671937 best_b: -4.511312252964364, and the loss is: 5.223311874304189\n",
      "When time is : 1173, get best_k: 4.242239373517787 best_b: -4.511347826086894, and the loss is: 5.223309502440236\n",
      "When time is : 1174, get best_k: 4.242272636363637 best_b: -4.511383399209423, and the loss is: 5.223307130576276\n",
      "When time is : 1175, get best_k: 4.242305899209487 best_b: -4.511418972331953, and the loss is: 5.2233047587123105\n",
      "When time is : 1176, get best_k: 4.2423391620553375 best_b: -4.511454545454482, and the loss is: 5.223302386848356\n",
      "When time is : 1177, get best_k: 4.242372424901188 best_b: -4.5114901185770115, and the loss is: 5.223300014984395\n",
      "When time is : 1178, get best_k: 4.242405687747038 best_b: -4.511525691699541, and the loss is: 5.223297643120432\n",
      "When time is : 1179, get best_k: 4.242438950592888 best_b: -4.51156126482207, and the loss is: 5.223295599054763\n",
      "When time is : 1180, get best_k: 4.242425142292492 best_b: -4.51160474308294, and the loss is: 5.223294183902337\n",
      "When time is : 1181, get best_k: 4.2424584051383425 best_b: -4.51164031620547, and the loss is: 5.223292430672295\n",
      "When time is : 1182, get best_k: 4.242444596837947 best_b: -4.5116837944663395, and the loss is: 5.223290724684245\n",
      "When time is : 1183, get best_k: 4.242477859683797 best_b: -4.511719367588869, and the loss is: 5.2232892622898355\n",
      "When time is : 1184, get best_k: 4.2424640513834015 best_b: -4.511762845849739, and the loss is: 5.223287265466147\n",
      "When time is : 1185, get best_k: 4.242497314229252 best_b: -4.511798418972268, and the loss is: 5.223286093907367\n",
      "When time is : 1186, get best_k: 4.242483505928856 best_b: -4.511841897233138, and the loss is: 5.22328401287904\n",
      "When time is : 1187, get best_k: 4.242469697628461 best_b: -4.511885375494008, and the loss is: 5.223282718893918\n",
      "When time is : 1188, get best_k: 4.242502960474311 best_b: -4.511920948616537, and the loss is: 5.2232808444965775\n",
      "When time is : 1189, get best_k: 4.242489152173915 best_b: -4.511964426877407, and the loss is: 5.2232792596758255\n",
      "When time is : 1190, get best_k: 4.242522415019765 best_b: -4.5119999999999365, and the loss is: 5.22327767611412\n",
      "When time is : 1191, get best_k: 4.24250860671937 best_b: -4.512043478260806, and the loss is: 5.22327580045773\n",
      "When time is : 1192, get best_k: 4.24254186956522 best_b: -4.512079051383336, and the loss is: 5.223274507731662\n",
      "When time is : 1193, get best_k: 4.242528061264824 best_b: -4.512122529644206, and the loss is: 5.223272426703331\n",
      "When time is : 1194, get best_k: 4.242514252964429 best_b: -4.512166007905075, and the loss is: 5.2232712538855015\n",
      "When time is : 1195, get best_k: 4.242547515810279 best_b: -4.512201581027605, and the loss is: 5.223269258320868\n",
      "When time is : 1196, get best_k: 4.2425337075098835 best_b: -4.512245059288475, and the loss is: 5.223267794667406\n",
      "When time is : 1197, get best_k: 4.242566970355734 best_b: -4.512280632411004, and the loss is: 5.22326608993841\n",
      "When time is : 1198, get best_k: 4.242553162055338 best_b: -4.512324110671874, and the loss is: 5.223264335449316\n",
      "When time is : 1199, get best_k: 4.242586424901188 best_b: -4.512359683794403, and the loss is: 5.223262921555936\n",
      "When time is : 1200, get best_k: 4.242572616600793 best_b: -4.512403162055273, and the loss is: 5.2232609067623015\n",
      "When time is : 1201, get best_k: 4.242582017786563 best_b: -4.512442687746972, and the loss is: 5.223259256099704\n",
      "When time is : 1202, get best_k: 4.242591418972333 best_b: -4.5124822134386715, and the loss is: 5.223257663139743\n",
      "When time is : 1203, get best_k: 4.242577610671938 best_b: -4.512525691699541, and the loss is: 5.223256351352164\n",
      "When time is : 1204, get best_k: 4.242610873517788 best_b: -4.512561264822071, and the loss is: 5.22325449475728\n",
      "When time is : 1205, get best_k: 4.242597065217392 best_b: -4.512604743082941, and the loss is: 5.223252892134055\n",
      "When time is : 1206, get best_k: 4.2426303280632425 best_b: -4.51264031620547, and the loss is: 5.223251326374816\n",
      "When time is : 1207, get best_k: 4.242616519762847 best_b: -4.51268379446634, and the loss is: 5.223249432915962\n",
      "When time is : 1208, get best_k: 4.242649782608697 best_b: -4.512719367588869, and the loss is: 5.223248157992353\n",
      "When time is : 1209, get best_k: 4.2426359743083015 best_b: -4.512762845849739, and the loss is: 5.223246094373962\n",
      "When time is : 1210, get best_k: 4.242645375494072 best_b: -4.512802371541438, and the loss is: 5.223244488270087\n",
      "When time is : 1211, get best_k: 4.242631567193676 best_b: -4.512845849802308, and the loss is: 5.2232431675812725\n",
      "When time is : 1212, get best_k: 4.242664830039526 best_b: -4.5128814229248375, and the loss is: 5.2232413198876255\n",
      "When time is : 1213, get best_k: 4.242651021739131 best_b: -4.512924901185707, and the loss is: 5.223239708363175\n",
      "When time is : 1214, get best_k: 4.242684284584981 best_b: -4.512960474308237, and the loss is: 5.223238151505172\n",
      "When time is : 1215, get best_k: 4.2426704762845855 best_b: -4.513003952569107, and the loss is: 5.22323624914508\n",
      "When time is : 1216, get best_k: 4.242703739130436 best_b: -4.513039525691636, and the loss is: 5.2232349831227065\n",
      "When time is : 1217, get best_k: 4.24268993083004 best_b: -4.513083003952506, and the loss is: 5.223232932648208\n",
      "When time is : 1218, get best_k: 4.24269933201581 best_b: -4.513122529644205, and the loss is: 5.223231313400439\n",
      "When time is : 1219, get best_k: 4.242685523715415 best_b: -4.513166007905075, and the loss is: 5.223229983810382\n",
      "When time is : 1220, get best_k: 4.242718786561265 best_b: -4.513201581027604, and the loss is: 5.2232281450179805\n",
      "When time is : 1221, get best_k: 4.2427049782608695 best_b: -4.513245059288474, and the loss is: 5.223226524592291\n",
      "When time is : 1222, get best_k: 4.24273824110672 best_b: -4.5132806324110035, and the loss is: 5.223224976635516\n",
      "When time is : 1223, get best_k: 4.242724432806324 best_b: -4.513324110671873, and the loss is: 5.223223078378855\n",
      "When time is : 1224, get best_k: 4.242733833992094 best_b: -4.5133636363635725, and the loss is: 5.223221427716262\n",
      "When time is : 1225, get best_k: 4.242743235177865 best_b: -4.513403162055272, and the loss is: 5.2232197770536635\n",
      "When time is : 1226, get best_k: 4.242752636363635 best_b: -4.513442687746971, and the loss is: 5.22321812952537\n",
      "When time is : 1227, get best_k: 4.242738828063239 best_b: -4.513486166007841, and the loss is: 5.223216821732659\n",
      "When time is : 1228, get best_k: 4.24277209090909 best_b: -4.51352173913037, and the loss is: 5.223214961142911\n",
      "When time is : 1229, get best_k: 4.242758282608694 best_b: -4.51356521739124, and the loss is: 5.2232133625145645\n",
      "When time is : 1230, get best_k: 4.242791545454544 best_b: -4.513600790513769, and the loss is: 5.223211792760451\n",
      "When time is : 1231, get best_k: 4.242777737154149 best_b: -4.513644268774639, and the loss is: 5.223209922784323\n",
      "When time is : 1232, get best_k: 4.242787138339919 best_b: -4.513683794466338, and the loss is: 5.223208272121717\n",
      "When time is : 1233, get best_k: 4.242796539525689 best_b: -4.513723320158038, and the loss is: 5.223206621459121\n",
      "When time is : 1234, get best_k: 4.2428059407114596 best_b: -4.513762845849737, and the loss is: 5.2232049707965285\n",
      "When time is : 1235, get best_k: 4.24281534189723 best_b: -4.513802371541436, and the loss is: 5.223203356956376\n",
      "When time is : 1236, get best_k: 4.242801533596834 best_b: -4.513845849802306, and the loss is: 5.223201940892469\n",
      "When time is : 1237, get best_k: 4.2428347964426845 best_b: -4.513881422924835, and the loss is: 5.223200188573914\n",
      "When time is : 1238, get best_k: 4.242820988142289 best_b: -4.513924901185705, and the loss is: 5.223198481674377\n",
      "When time is : 1239, get best_k: 4.242854250988139 best_b: -4.513960474308234, and the loss is: 5.22319702019145\n",
      "When time is : 1240, get best_k: 4.2428404426877435 best_b: -4.514003952569104, and the loss is: 5.223195116527179\n",
      "When time is : 1241, get best_k: 4.242849843873514 best_b: -4.514043478260803, and the loss is: 5.223193465864571\n",
      "When time is : 1242, get best_k: 4.242859245059284 best_b: -4.514083003952503, and the loss is: 5.223191815201982\n",
      "When time is : 1243, get best_k: 4.242868646245054 best_b: -4.514122529644202, and the loss is: 5.223190173081306\n",
      "When time is : 1244, get best_k: 4.242854837944659 best_b: -4.514166007905072, and the loss is: 5.223188778814747\n",
      "When time is : 1245, get best_k: 4.242888100790509 best_b: -4.514201581027601, and the loss is: 5.2231870046988425\n",
      "When time is : 1246, get best_k: 4.2428742924901135 best_b: -4.514245059288471, and the loss is: 5.2231853195966575\n",
      "When time is : 1247, get best_k: 4.242907555335964 best_b: -4.514280632411, and the loss is: 5.2231838363163865\n",
      "When time is : 1248, get best_k: 4.242893747035568 best_b: -4.51432411067187, and the loss is: 5.223181960932635\n",
      "When time is : 1249, get best_k: 4.242903148221338 best_b: -4.514363636363569, and the loss is: 5.223180310270038\n",
      "When time is : 1250, get best_k: 4.242912549407109 best_b: -4.5144031620552685, and the loss is: 5.22317865960744\n",
      "When time is : 1251, get best_k: 4.242921950592879 best_b: -4.514442687746968, and the loss is: 5.22317700894484\n",
      "When time is : 1252, get best_k: 4.242931351778649 best_b: -4.514482213438667, and the loss is: 5.223175400512301\n",
      "When time is : 1253, get best_k: 4.242917543478254 best_b: -4.514525691699537, and the loss is: 5.223173897974558\n",
      "When time is : 1254, get best_k: 4.242950806324104 best_b: -4.514561264822066, and the loss is: 5.223172232129841\n",
      "When time is : 1255, get best_k: 4.242936998023708 best_b: -4.514604743082936, and the loss is: 5.223170462131904\n",
      "When time is : 1256, get best_k: 4.242946399209479 best_b: -4.514644268774635, and the loss is: 5.223168811469308\n",
      "When time is : 1257, get best_k: 4.242955800395249 best_b: -4.514683794466334, and the loss is: 5.223167160806707\n",
      "When time is : 1258, get best_k: 4.242965201581019 best_b: -4.5147233201580335, and the loss is: 5.223165510144109\n",
      "When time is : 1259, get best_k: 4.24297460276679 best_b: -4.514762845849733, and the loss is: 5.223163859481508\n",
      "When time is : 1260, get best_k: 4.24298400395256 best_b: -4.514802371541432, and the loss is: 5.223162208818912\n",
      "When time is : 1261, get best_k: 4.24299340513833 best_b: -4.514841897233131, and the loss is: 5.223160618937888\n",
      "When time is : 1262, get best_k: 4.242979596837935 best_b: -4.514885375494001, and the loss is: 5.223159038827526\n",
      "When time is : 1263, get best_k: 4.243012859683785 best_b: -4.51492094861653, and the loss is: 5.223157450555425\n",
      "When time is : 1264, get best_k: 4.242999051383389 best_b: -4.5149644268774, and the loss is: 5.223155662005975\n",
      "When time is : 1265, get best_k: 4.24300845256916 best_b: -4.515003952569099, and the loss is: 5.223154011343369\n",
      "When time is : 1266, get best_k: 4.24301785375493 best_b: -4.515043478260798, and the loss is: 5.223152360680773\n",
      "When time is : 1267, get best_k: 4.2430272549407 best_b: -4.515083003952498, and the loss is: 5.223150710018183\n",
      "When time is : 1268, get best_k: 4.2430366561264705 best_b: -4.515122529644197, and the loss is: 5.223149059355575\n",
      "When time is : 1269, get best_k: 4.243046057312241 best_b: -4.515162055335896, and the loss is: 5.22314742605741\n",
      "When time is : 1270, get best_k: 4.243032249011845 best_b: -4.515205533596766, and the loss is: 5.223145898442966\n",
      "When time is : 1271, get best_k: 4.243065511857695 best_b: -4.515241106719295, and the loss is: 5.223144257674949\n",
      "When time is : 1272, get best_k: 4.2430517035573 best_b: -4.515284584980165, and the loss is: 5.223142512542637\n",
      "When time is : 1273, get best_k: 4.24306110474307 best_b: -4.515324110671864, and the loss is: 5.223140861880039\n",
      "When time is : 1274, get best_k: 4.2430705059288405 best_b: -4.515363636363563, and the loss is: 5.223139211217444\n",
      "When time is : 1275, get best_k: 4.243079907114611 best_b: -4.515403162055263, and the loss is: 5.223137560554844\n",
      "When time is : 1276, get best_k: 4.243089308300381 best_b: -4.515442687746962, and the loss is: 5.223135909892247\n",
      "When time is : 1277, get best_k: 4.243098709486151 best_b: -4.515482213438661, and the loss is: 5.2231342592296475\n",
      "When time is : 1278, get best_k: 4.243108110671922 best_b: -4.51552173913036, and the loss is: 5.223132644483003\n",
      "When time is : 1279, get best_k: 4.243094302371526 best_b: -4.51556521739123, and the loss is: 5.223131039295937\n",
      "When time is : 1280, get best_k: 4.243127565217376 best_b: -4.515600790513759, and the loss is: 5.223129476100537\n",
      "When time is : 1281, get best_k: 4.243113756916981 best_b: -4.515644268774629, and the loss is: 5.223127712416705\n",
      "When time is : 1282, get best_k: 4.243123158102751 best_b: -4.515683794466328, and the loss is: 5.223126061754112\n",
      "When time is : 1283, get best_k: 4.243132559288521 best_b: -4.515723320158028, and the loss is: 5.223124411091513\n",
      "When time is : 1284, get best_k: 4.243141960474292 best_b: -4.515762845849727, and the loss is: 5.223122760428908\n",
      "When time is : 1285, get best_k: 4.243151361660062 best_b: -4.515802371541426, and the loss is: 5.223121109766318\n",
      "When time is : 1286, get best_k: 4.243160762845832 best_b: -4.515841897233125, and the loss is: 5.223119459103716\n",
      "When time is : 1287, get best_k: 4.243170164031603 best_b: -4.515881422924824, and the loss is: 5.223117862908585\n",
      "When time is : 1288, get best_k: 4.243156355731207 best_b: -4.515924901185694, and the loss is: 5.22311621974718\n",
      "When time is : 1289, get best_k: 4.243165756916977 best_b: -4.515964426877393, and the loss is: 5.223114569084578\n",
      "When time is : 1290, get best_k: 4.243175158102748 best_b: -4.5160039525690925, and the loss is: 5.223112918421982\n",
      "When time is : 1291, get best_k: 4.243184559288518 best_b: -4.516043478260792, and the loss is: 5.223111267759386\n",
      "When time is : 1292, get best_k: 4.243193960474288 best_b: -4.516083003952491, and the loss is: 5.223109617096788\n",
      "When time is : 1293, get best_k: 4.243203361660059 best_b: -4.51612252964419, and the loss is: 5.223107966434194\n",
      "When time is : 1294, get best_k: 4.243212762845829 best_b: -4.516162055335889, and the loss is: 5.223106315771583\n",
      "When time is : 1295, get best_k: 4.243222164031599 best_b: -4.516201581027588, and the loss is: 5.223104665108992\n",
      "When time is : 1296, get best_k: 4.2432315652173695 best_b: -4.516241106719288, and the loss is: 5.2231030723287555\n",
      "When time is : 1297, get best_k: 4.243217756916974 best_b: -4.516284584980157, and the loss is: 5.223101425752454\n",
      "When time is : 1298, get best_k: 4.243227158102744 best_b: -4.516324110671857, and the loss is: 5.223099775089854\n",
      "When time is : 1299, get best_k: 4.243236559288515 best_b: -4.516363636363556, and the loss is: 5.223098124427259\n",
      "When time is : 1300, get best_k: 4.243245960474285 best_b: -4.516403162055255, and the loss is: 5.2230964737646595\n",
      "When time is : 1301, get best_k: 4.243255361660055 best_b: -4.516442687746954, and the loss is: 5.223094823102063\n",
      "When time is : 1302, get best_k: 4.2432647628458255 best_b: -4.516482213438653, and the loss is: 5.223093172439464\n",
      "When time is : 1303, get best_k: 4.243274164031596 best_b: -4.5165217391303525, and the loss is: 5.223091521776863\n",
      "When time is : 1304, get best_k: 4.243283565217366 best_b: -4.516561264822052, and the loss is: 5.22308987111427\n",
      "When time is : 1305, get best_k: 4.2432929664031365 best_b: -4.516600790513751, and the loss is: 5.223088281748925\n",
      "When time is : 1306, get best_k: 4.243279158102741 best_b: -4.516644268774621, and the loss is: 5.223086631757727\n",
      "When time is : 1307, get best_k: 4.243288559288511 best_b: -4.51668379446632, and the loss is: 5.223084981095133\n",
      "When time is : 1308, get best_k: 4.2432979604742815 best_b: -4.516723320158019, and the loss is: 5.223083330432538\n",
      "When time is : 1309, get best_k: 4.243307361660052 best_b: -4.516762845849718, and the loss is: 5.22308167976994\n",
      "When time is : 1310, get best_k: 4.243316762845822 best_b: -4.516802371541417, and the loss is: 5.223080029107339\n",
      "When time is : 1311, get best_k: 4.2433261640315925 best_b: -4.516841897233117, and the loss is: 5.223078378444741\n",
      "When time is : 1312, get best_k: 4.243335565217363 best_b: -4.516881422924816, and the loss is: 5.22307672778214\n",
      "When time is : 1313, get best_k: 4.243344966403133 best_b: -4.516920948616515, and the loss is: 5.223075079863035\n",
      "When time is : 1314, get best_k: 4.2433311581027375 best_b: -4.516964426877385, and the loss is: 5.223073488425605\n",
      "When time is : 1315, get best_k: 4.243340559288508 best_b: -4.517003952569084, and the loss is: 5.223071837763009\n",
      "When time is : 1316, get best_k: 4.243349960474278 best_b: -4.517043478260783, and the loss is: 5.223070187100407\n",
      "When time is : 1317, get best_k: 4.2433593616600485 best_b: -4.517083003952482, and the loss is: 5.223068536437815\n",
      "When time is : 1318, get best_k: 4.243368762845819 best_b: -4.5171225296441815, and the loss is: 5.22306688577522\n",
      "When time is : 1319, get best_k: 4.243378164031589 best_b: -4.517162055335881, and the loss is: 5.223065235112616\n",
      "When time is : 1320, get best_k: 4.243387565217359 best_b: -4.51720158102758, and the loss is: 5.223063584450012\n",
      "When time is : 1321, get best_k: 4.24339696640313 best_b: -4.517241106719279, and the loss is: 5.22306193378742\n",
      "When time is : 1322, get best_k: 4.2434063675889 best_b: -4.517280632410978, and the loss is: 5.2230602892832145\n",
      "When time is : 1323, get best_k: 4.2433925592885045 best_b: -4.517324110671848, and the loss is: 5.223058694430886\n",
      "When time is : 1324, get best_k: 4.243401960474275 best_b: -4.517363636363547, and the loss is: 5.223057043768287\n",
      "When time is : 1325, get best_k: 4.243411361660045 best_b: -4.517403162055246, and the loss is: 5.2230553931056924\n",
      "When time is : 1326, get best_k: 4.243420762845815 best_b: -4.517442687746946, and the loss is: 5.223053742443088\n",
      "When time is : 1327, get best_k: 4.243430164031586 best_b: -4.517482213438645, and the loss is: 5.223052091780493\n",
      "When time is : 1328, get best_k: 4.243439565217356 best_b: -4.517521739130344, and the loss is: 5.223050441117902\n",
      "When time is : 1329, get best_k: 4.243448966403126 best_b: -4.517561264822043, and the loss is: 5.223048790455293\n",
      "When time is : 1330, get best_k: 4.243458367588897 best_b: -4.517600790513742, and the loss is: 5.223047139792693\n",
      "When time is : 1331, get best_k: 4.243467768774667 best_b: -4.5176403162054415, and the loss is: 5.223045498703379\n",
      "When time is : 1332, get best_k: 4.243453960474271 best_b: -4.517683794466311, and the loss is: 5.223043900436163\n",
      "When time is : 1333, get best_k: 4.243463361660042 best_b: -4.5177233201580105, and the loss is: 5.223042249773565\n",
      "When time is : 1334, get best_k: 4.243472762845812 best_b: -4.51776284584971, and the loss is: 5.2230405991109725\n",
      "When time is : 1335, get best_k: 4.243482164031582 best_b: -4.517802371541409, and the loss is: 5.223038948448366\n",
      "When time is : 1336, get best_k: 4.243491565217353 best_b: -4.517841897233108, and the loss is: 5.223037297785765\n",
      "When time is : 1337, get best_k: 4.243500966403123 best_b: -4.517881422924807, and the loss is: 5.2230356471231705\n",
      "When time is : 1338, get best_k: 4.243510367588893 best_b: -4.517920948616506, and the loss is: 5.223033996460566\n",
      "When time is : 1339, get best_k: 4.2435197687746635 best_b: -4.517960474308206, and the loss is: 5.2230323457979715\n",
      "When time is : 1340, get best_k: 4.243529169960434 best_b: -4.517999999999905, and the loss is: 5.223030708123553\n",
      "When time is : 1341, get best_k: 4.243515361660038 best_b: -4.518043478260775, and the loss is: 5.223029106441437\n",
      "When time is : 1342, get best_k: 4.243524762845809 best_b: -4.518083003952474, and the loss is: 5.2230274557788405\n",
      "When time is : 1343, get best_k: 4.243534164031579 best_b: -4.518122529644173, and the loss is: 5.2230258051162375\n",
      "When time is : 1344, get best_k: 4.243543565217349 best_b: -4.518162055335872, and the loss is: 5.223024154453649\n",
      "When time is : 1345, get best_k: 4.2435529664031195 best_b: -4.518201581027571, and the loss is: 5.223022503791051\n",
      "When time is : 1346, get best_k: 4.24356236758889 best_b: -4.5182411067192705, and the loss is: 5.223020853128448\n",
      "When time is : 1347, get best_k: 4.24357176877466 best_b: -4.51828063241097, and the loss is: 5.223019202465851\n",
      "When time is : 1348, get best_k: 4.24358116996043 best_b: -4.518320158102669, and the loss is: 5.223017551803253\n",
      "When time is : 1349, get best_k: 4.243590571146201 best_b: -4.518359683794368, and the loss is: 5.22301591754372\n",
      "When time is : 1350, get best_k: 4.243576762845805 best_b: -4.518403162055238, and the loss is: 5.223014312446712\n",
      "When time is : 1351, get best_k: 4.2435861640315755 best_b: -4.518442687746937, and the loss is: 5.223012661784116\n",
      "When time is : 1352, get best_k: 4.243595565217346 best_b: -4.518482213438636, and the loss is: 5.2230110111215176\n",
      "When time is : 1353, get best_k: 4.243604966403116 best_b: -4.518521739130335, and the loss is: 5.223009360458917\n",
      "When time is : 1354, get best_k: 4.243614367588886 best_b: -4.518561264822035, and the loss is: 5.223007709796325\n",
      "When time is : 1355, get best_k: 4.243623768774657 best_b: -4.518600790513734, and the loss is: 5.223006059133717\n",
      "When time is : 1356, get best_k: 4.243633169960427 best_b: -4.518640316205433, and the loss is: 5.223004408471128\n",
      "When time is : 1357, get best_k: 4.243642571146197 best_b: -4.518679841897132, and the loss is: 5.223002757808524\n",
      "When time is : 1358, get best_k: 4.243651972331968 best_b: -4.518719367588831, and the loss is: 5.223001126963894\n",
      "When time is : 1359, get best_k: 4.243638164031572 best_b: -4.518762845849701, and the loss is: 5.222999518451989\n",
      "When time is : 1360, get best_k: 4.243647565217342 best_b: -4.5188023715414, and the loss is: 5.2229978677893945\n",
      "When time is : 1361, get best_k: 4.243656966403113 best_b: -4.5188418972330995, and the loss is: 5.2229962171267985\n",
      "When time is : 1362, get best_k: 4.243666367588883 best_b: -4.518881422924799, and the loss is: 5.222994566464197\n",
      "When time is : 1363, get best_k: 4.243675768774653 best_b: -4.518920948616498, and the loss is: 5.222992915801598\n",
      "When time is : 1364, get best_k: 4.243685169960424 best_b: -4.518960474308197, and the loss is: 5.222991265139001\n",
      "When time is : 1365, get best_k: 4.243694571146194 best_b: -4.518999999999896, and the loss is: 5.2229896144764\n",
      "When time is : 1366, get best_k: 4.243703972331964 best_b: -4.519039525691595, and the loss is: 5.222987963813801\n",
      "When time is : 1367, get best_k: 4.243713373517735 best_b: -4.519079051383295, and the loss is: 5.222986336384073\n",
      "When time is : 1368, get best_k: 4.243699565217339 best_b: -4.519122529644164, and the loss is: 5.222984724457273\n",
      "When time is : 1369, get best_k: 4.243708966403109 best_b: -4.519162055335864, and the loss is: 5.22298307379467\n",
      "When time is : 1370, get best_k: 4.24371836758888 best_b: -4.519201581027563, and the loss is: 5.222981423132075\n",
      "When time is : 1371, get best_k: 4.24372776877465 best_b: -4.519241106719262, and the loss is: 5.2229797724694755\n",
      "When time is : 1372, get best_k: 4.24373716996042 best_b: -4.519280632410961, and the loss is: 5.222978121806875\n",
      "When time is : 1373, get best_k: 4.243746571146191 best_b: -4.51932015810266, and the loss is: 5.222976471144275\n",
      "When time is : 1374, get best_k: 4.243755972331961 best_b: -4.5193596837943595, and the loss is: 5.2229748204816735\n",
      "When time is : 1375, get best_k: 4.243765373517731 best_b: -4.519399209486059, and the loss is: 5.222973169819084\n",
      "When time is : 1376, get best_k: 4.2437747747035015 best_b: -4.519438735177758, and the loss is: 5.222971545804236\n",
      "When time is : 1377, get best_k: 4.243760966403106 best_b: -4.519482213438628, and the loss is: 5.222969930462547\n",
      "When time is : 1378, get best_k: 4.243770367588876 best_b: -4.519521739130327, and the loss is: 5.222968279799947\n",
      "When time is : 1379, get best_k: 4.243779768774647 best_b: -4.519561264822026, and the loss is: 5.222966629137349\n",
      "When time is : 1380, get best_k: 4.243789169960417 best_b: -4.519600790513725, and the loss is: 5.222964978474752\n",
      "When time is : 1381, get best_k: 4.243798571146187 best_b: -4.519640316205424, and the loss is: 5.222963327812154\n",
      "When time is : 1382, get best_k: 4.2438079723319575 best_b: -4.519679841897124, and the loss is: 5.222961677149557\n",
      "When time is : 1383, get best_k: 4.243817373517728 best_b: -4.519719367588823, and the loss is: 5.222960026486955\n",
      "When time is : 1384, get best_k: 4.243826774703498 best_b: -4.519758893280522, and the loss is: 5.222958375824353\n",
      "When time is : 1385, get best_k: 4.243836175889268 best_b: -4.519798418972221, and the loss is: 5.222956755224407\n",
      "When time is : 1386, get best_k: 4.243822367588873 best_b: -4.519841897233091, and the loss is: 5.2229551364678235\n",
      "When time is : 1387, get best_k: 4.243831768774643 best_b: -4.51988142292479, and the loss is: 5.2229534858052205\n",
      "When time is : 1388, get best_k: 4.2438411699604135 best_b: -4.519920948616489, and the loss is: 5.222951835142627\n",
      "When time is : 1389, get best_k: 4.243850571146184 best_b: -4.5199604743081885, and the loss is: 5.222950184480032\n",
      "When time is : 1390, get best_k: 4.243859972331954 best_b: -4.519999999999888, and the loss is: 5.222948533817429\n",
      "When time is : 1391, get best_k: 4.243869373517724 best_b: -4.520039525691587, and the loss is: 5.222946883154827\n",
      "When time is : 1392, get best_k: 4.243878774703495 best_b: -4.520079051383286, and the loss is: 5.222945232492237\n",
      "When time is : 1393, get best_k: 4.243888175889265 best_b: -4.520118577074985, and the loss is: 5.2229435818296395\n",
      "When time is : 1394, get best_k: 4.243897577075035 best_b: -4.520158102766684, and the loss is: 5.222941964644579\n",
      "When time is : 1395, get best_k: 4.24388376877464 best_b: -4.520201581027554, and the loss is: 5.222940342473095\n",
      "When time is : 1396, get best_k: 4.24389316996041 best_b: -4.520241106719253, and the loss is: 5.222938691810502\n",
      "When time is : 1397, get best_k: 4.24390257114618 best_b: -4.520280632410953, and the loss is: 5.222937041147898\n",
      "When time is : 1398, get best_k: 4.243911972331951 best_b: -4.520320158102652, and the loss is: 5.2229353904853015\n",
      "When time is : 1399, get best_k: 4.243921373517721 best_b: -4.520359683794351, and the loss is: 5.222933739822708\n",
      "When time is : 1400, get best_k: 4.243930774703491 best_b: -4.52039920948605, and the loss is: 5.22293208916011\n",
      "When time is : 1401, get best_k: 4.243940175889262 best_b: -4.520438735177749, and the loss is: 5.222930438497506\n",
      "When time is : 1402, get best_k: 4.243949577075032 best_b: -4.5204782608694485, and the loss is: 5.222928787834904\n",
      "When time is : 1403, get best_k: 4.243958978260802 best_b: -4.520517786561148, and the loss is: 5.222927174064743\n",
      "When time is : 1404, get best_k: 4.243945169960407 best_b: -4.5205612648220175, and the loss is: 5.2229255484783765\n",
      "When time is : 1405, get best_k: 4.243954571146177 best_b: -4.520600790513717, and the loss is: 5.222923897815775\n",
      "When time is : 1406, get best_k: 4.243963972331947 best_b: -4.520640316205416, and the loss is: 5.222922247153184\n",
      "When time is : 1407, get best_k: 4.243973373517718 best_b: -4.520679841897115, and the loss is: 5.222920596490583\n",
      "When time is : 1408, get best_k: 4.243982774703488 best_b: -4.520719367588814, and the loss is: 5.22291894582798\n",
      "When time is : 1409, get best_k: 4.243992175889258 best_b: -4.520758893280513, and the loss is: 5.222917295165383\n",
      "When time is : 1410, get best_k: 4.244001577075029 best_b: -4.520798418972213, and the loss is: 5.222915644502787\n",
      "When time is : 1411, get best_k: 4.244010978260799 best_b: -4.520837944663912, and the loss is: 5.222913993840186\n",
      "When time is : 1412, get best_k: 4.244020379446569 best_b: -4.520877470355611, and the loss is: 5.222912383484923\n",
      "When time is : 1413, get best_k: 4.244006571146174 best_b: -4.520920948616481, and the loss is: 5.222910754483657\n",
      "When time is : 1414, get best_k: 4.244015972331944 best_b: -4.52096047430818, and the loss is: 5.222909103821052\n",
      "When time is : 1415, get best_k: 4.244025373517714 best_b: -4.520999999999879, and the loss is: 5.2229074531584505\n",
      "When time is : 1416, get best_k: 4.244034774703485 best_b: -4.521039525691578, and the loss is: 5.222905802495856\n",
      "When time is : 1417, get best_k: 4.244044175889255 best_b: -4.5210790513832775, and the loss is: 5.222904151833254\n",
      "When time is : 1418, get best_k: 4.244053577075025 best_b: -4.521118577074977, and the loss is: 5.222902501170661\n",
      "When time is : 1419, get best_k: 4.2440629782607955 best_b: -4.521158102766676, and the loss is: 5.222900850508067\n",
      "When time is : 1420, get best_k: 4.244072379446566 best_b: -4.521197628458375, and the loss is: 5.222899199845467\n",
      "When time is : 1421, get best_k: 4.244081780632336 best_b: -4.521237154150074, and the loss is: 5.22289759290509\n",
      "When time is : 1422, get best_k: 4.2440679723319406 best_b: -4.521280632410944, and the loss is: 5.222895960488928\n",
      "When time is : 1423, get best_k: 4.244077373517711 best_b: -4.521320158102643, and the loss is: 5.222894309826329\n",
      "When time is : 1424, get best_k: 4.244086774703481 best_b: -4.521359683794342, and the loss is: 5.222892659163732\n",
      "When time is : 1425, get best_k: 4.2440961758892515 best_b: -4.521399209486042, and the loss is: 5.222891008501135\n",
      "When time is : 1426, get best_k: 4.244105577075022 best_b: -4.521438735177741, and the loss is: 5.2228893578385325\n",
      "When time is : 1427, get best_k: 4.244114978260792 best_b: -4.52147826086944, and the loss is: 5.222887707175939\n",
      "When time is : 1428, get best_k: 4.244124379446562 best_b: -4.521517786561139, and the loss is: 5.222886056513339\n",
      "When time is : 1429, get best_k: 4.244133780632333 best_b: -4.521557312252838, and the loss is: 5.222884405850742\n",
      "When time is : 1430, get best_k: 4.244143181818103 best_b: -4.5215968379445375, and the loss is: 5.2228828023252625\n",
      "When time is : 1431, get best_k: 4.2441293735177075 best_b: -4.521640316205407, and the loss is: 5.222881166494206\n",
      "When time is : 1432, get best_k: 4.244138774703478 best_b: -4.5216798418971065, and the loss is: 5.222879515831604\n",
      "When time is : 1433, get best_k: 4.244148175889248 best_b: -4.521719367588806, and the loss is: 5.222877865169013\n",
      "When time is : 1434, get best_k: 4.244157577075018 best_b: -4.521758893280505, and the loss is: 5.222876214506411\n",
      "When time is : 1435, get best_k: 4.244166978260789 best_b: -4.521798418972204, and the loss is: 5.222874563843814\n",
      "When time is : 1436, get best_k: 4.244176379446559 best_b: -4.521837944663903, and the loss is: 5.222872913181213\n",
      "When time is : 1437, get best_k: 4.244185780632329 best_b: -4.521877470355602, and the loss is: 5.222871262518614\n",
      "When time is : 1438, get best_k: 4.2441951818181 best_b: -4.521916996047302, and the loss is: 5.222869611856017\n",
      "When time is : 1439, get best_k: 4.24420458300387 best_b: -4.521956521739001, and the loss is: 5.222868011745433\n",
      "When time is : 1440, get best_k: 4.244190774703474 best_b: -4.521999999999871, and the loss is: 5.222866372499483\n",
      "When time is : 1441, get best_k: 4.244200175889245 best_b: -4.52203952569157, and the loss is: 5.222864721836884\n",
      "When time is : 1442, get best_k: 4.244209577075015 best_b: -4.522079051383269, and the loss is: 5.222863071174285\n",
      "When time is : 1443, get best_k: 4.244218978260785 best_b: -4.522118577074968, and the loss is: 5.222861420511682\n",
      "When time is : 1444, get best_k: 4.244228379446556 best_b: -4.522158102766667, and the loss is: 5.222859769849088\n",
      "When time is : 1445, get best_k: 4.244237780632326 best_b: -4.5221976284583665, and the loss is: 5.222858119186488\n",
      "When time is : 1446, get best_k: 4.244247181818096 best_b: -4.522237154150066, and the loss is: 5.222856468523892\n",
      "When time is : 1447, get best_k: 4.2442565830038665 best_b: -4.522276679841765, and the loss is: 5.222854817861302\n",
      "When time is : 1448, get best_k: 4.244265984189637 best_b: -4.522316205533464, and the loss is: 5.222853221165602\n",
      "When time is : 1449, get best_k: 4.244252175889241 best_b: -4.522359683794334, and the loss is: 5.222851578504762\n",
      "When time is : 1450, get best_k: 4.244261577075012 best_b: -4.522399209486033, and the loss is: 5.222849927842166\n",
      "When time is : 1451, get best_k: 4.244270978260782 best_b: -4.522438735177732, and the loss is: 5.222848277179562\n",
      "When time is : 1452, get best_k: 4.244280379446552 best_b: -4.522478260869431, and the loss is: 5.222846626516962\n",
      "When time is : 1453, get best_k: 4.2442897806323225 best_b: -4.522517786561131, and the loss is: 5.222844975854364\n",
      "When time is : 1454, get best_k: 4.244299181818093 best_b: -4.52255731225283, and the loss is: 5.222843325191776\n",
      "When time is : 1455, get best_k: 4.244308583003863 best_b: -4.522596837944529, and the loss is: 5.222841674529178\n",
      "When time is : 1456, get best_k: 4.2443179841896335 best_b: -4.522636363636228, and the loss is: 5.222840023866572\n",
      "When time is : 1457, get best_k: 4.244327385375404 best_b: -4.522675889327927, and the loss is: 5.222838430585775\n",
      "When time is : 1458, get best_k: 4.244313577075008 best_b: -4.522719367588797, and the loss is: 5.22283678451003\n",
      "When time is : 1459, get best_k: 4.2443229782607785 best_b: -4.522758893280496, and the loss is: 5.222835133847437\n",
      "When time is : 1460, get best_k: 4.244332379446549 best_b: -4.5227984189721955, and the loss is: 5.222833483184841\n",
      "When time is : 1461, get best_k: 4.244341780632319 best_b: -4.522837944663895, and the loss is: 5.222831832522244\n",
      "When time is : 1462, get best_k: 4.2443511818180895 best_b: -4.522877470355594, and the loss is: 5.2228301818596465\n",
      "When time is : 1463, get best_k: 4.24436058300386 best_b: -4.522916996047293, and the loss is: 5.222828531197046\n",
      "When time is : 1464, get best_k: 4.24436998418963 best_b: -4.522956521738992, and the loss is: 5.222826880534447\n",
      "When time is : 1465, get best_k: 4.2443793853754 best_b: -4.522996047430691, and the loss is: 5.222825229871843\n",
      "When time is : 1466, get best_k: 4.244388786561171 best_b: -4.523035573122391, and the loss is: 5.22282364000595\n",
      "When time is : 1467, get best_k: 4.244374978260775 best_b: -4.52307905138326, and the loss is: 5.222821990515308\n",
      "When time is : 1468, get best_k: 4.2443843794465455 best_b: -4.52311857707496, and the loss is: 5.222820339852716\n",
      "When time is : 1469, get best_k: 4.244393780632316 best_b: -4.523158102766659, and the loss is: 5.222818689190116\n",
      "When time is : 1470, get best_k: 4.244403181818086 best_b: -4.523197628458358, and the loss is: 5.222817038527517\n",
      "When time is : 1471, get best_k: 4.244412583003856 best_b: -4.523237154150057, and the loss is: 5.22281538786492\n",
      "When time is : 1472, get best_k: 4.244421984189627 best_b: -4.523276679841756, and the loss is: 5.222813737202319\n",
      "When time is : 1473, get best_k: 4.244431385375397 best_b: -4.5233162055334555, and the loss is: 5.222812086539721\n",
      "When time is : 1474, get best_k: 4.244440786561167 best_b: -4.523355731225155, and the loss is: 5.222810438120058\n",
      "When time is : 1475, get best_k: 4.244426978260772 best_b: -4.5233992094860245, and the loss is: 5.222808847183185\n",
      "When time is : 1476, get best_k: 4.244436379446542 best_b: -4.523438735177724, and the loss is: 5.222807196520594\n",
      "When time is : 1477, get best_k: 4.244445780632312 best_b: -4.523478260869423, and the loss is: 5.222805545857993\n",
      "When time is : 1478, get best_k: 4.244455181818083 best_b: -4.523517786561122, and the loss is: 5.22280389519539\n",
      "When time is : 1479, get best_k: 4.244464583003853 best_b: -4.523557312252821, and the loss is: 5.222802244532791\n",
      "When time is : 1480, get best_k: 4.244473984189623 best_b: -4.52359683794452, and the loss is: 5.222800593870197\n",
      "When time is : 1481, get best_k: 4.244483385375394 best_b: -4.52363636363622, and the loss is: 5.2227989432076\n",
      "When time is : 1482, get best_k: 4.244492786561164 best_b: -4.523675889327919, and the loss is: 5.222797292545002\n",
      "When time is : 1483, get best_k: 4.244502187746934 best_b: -4.523715415019618, and the loss is: 5.222795647540235\n",
      "When time is : 1484, get best_k: 4.244488379446539 best_b: -4.523758893280488, and the loss is: 5.222794053188466\n",
      "When time is : 1485, get best_k: 4.244497780632309 best_b: -4.523798418972187, and the loss is: 5.222792402525866\n",
      "When time is : 1486, get best_k: 4.244507181818079 best_b: -4.523837944663886, and the loss is: 5.222790751863265\n",
      "When time is : 1487, get best_k: 4.24451658300385 best_b: -4.523877470355585, and the loss is: 5.22278910120067\n",
      "When time is : 1488, get best_k: 4.24452598418962 best_b: -4.5239169960472845, and the loss is: 5.222787450538066\n",
      "When time is : 1489, get best_k: 4.24453538537539 best_b: -4.523956521738984, and the loss is: 5.222785799875477\n",
      "When time is : 1490, get best_k: 4.2445447865611605 best_b: -4.523996047430683, and the loss is: 5.222784149212879\n",
      "When time is : 1491, get best_k: 4.244554187746931 best_b: -4.524035573122382, and the loss is: 5.222782498550278\n",
      "When time is : 1492, get best_k: 4.244563588932701 best_b: -4.524075098814081, and the loss is: 5.222780856960401\n",
      "When time is : 1493, get best_k: 4.244549780632306 best_b: -4.524118577074951, and the loss is: 5.2227792591937385\n",
      "When time is : 1494, get best_k: 4.244559181818076 best_b: -4.52415810276665, and the loss is: 5.222777608531144\n",
      "When time is : 1495, get best_k: 4.244568583003846 best_b: -4.524197628458349, and the loss is: 5.222775957868552\n",
      "When time is : 1496, get best_k: 4.2445779841896165 best_b: -4.524237154150049, and the loss is: 5.222774307205941\n",
      "When time is : 1497, get best_k: 4.244587385375387 best_b: -4.524276679841748, and the loss is: 5.222772656543354\n",
      "When time is : 1498, get best_k: 4.244596786561157 best_b: -4.524316205533447, and the loss is: 5.222771005880753\n",
      "When time is : 1499, get best_k: 4.244606187746927 best_b: -4.524355731225146, and the loss is: 5.222769355218157\n",
      "When time is : 1500, get best_k: 4.244615588932698 best_b: -4.524395256916845, and the loss is: 5.222767704555557\n",
      "When time is : 1501, get best_k: 4.244624990118468 best_b: -4.5244347826085445, and the loss is: 5.222766066380573\n",
      "When time is : 1502, get best_k: 4.2446111818180725 best_b: -4.524478260869414, and the loss is: 5.222764465199016\n",
      "When time is : 1503, get best_k: 4.244620583003843 best_b: -4.5245177865611135, and the loss is: 5.2227628145364235\n",
      "When time is : 1504, get best_k: 4.244629984189613 best_b: -4.524557312252813, and the loss is: 5.222761163873815\n",
      "When time is : 1505, get best_k: 4.244639385375383 best_b: -4.524596837944512, and the loss is: 5.222759513211215\n",
      "When time is : 1506, get best_k: 4.244648786561154 best_b: -4.524636363636211, and the loss is: 5.222757862548632\n",
      "When time is : 1507, get best_k: 4.244658187746924 best_b: -4.52467588932791, and the loss is: 5.222756211886028\n",
      "When time is : 1508, get best_k: 4.244667588932694 best_b: -4.524715415019609, and the loss is: 5.222754561223424\n",
      "When time is : 1509, get best_k: 4.244676990118465 best_b: -4.524754940711309, and the loss is: 5.222752910560828\n",
      "When time is : 1510, get best_k: 4.244686391304235 best_b: -4.524794466403008, and the loss is: 5.222751275800747\n",
      "When time is : 1511, get best_k: 4.244672583003839 best_b: -4.524837944663878, and the loss is: 5.2227496712042925\n",
      "When time is : 1512, get best_k: 4.24468198418961 best_b: -4.524877470355577, and the loss is: 5.222748020541698\n",
      "When time is : 1513, get best_k: 4.24469138537538 best_b: -4.524916996047276, and the loss is: 5.222746369879104\n",
      "When time is : 1514, get best_k: 4.24470078656115 best_b: -4.524956521738975, and the loss is: 5.222744719216502\n",
      "When time is : 1515, get best_k: 4.244710187746921 best_b: -4.524996047430674, and the loss is: 5.222743068553904\n",
      "When time is : 1516, get best_k: 4.244719588932691 best_b: -4.5250355731223735, and the loss is: 5.222741417891301\n",
      "When time is : 1517, get best_k: 4.244728990118461 best_b: -4.525075098814073, and the loss is: 5.2227397672287035\n",
      "When time is : 1518, get best_k: 4.244738391304232 best_b: -4.525114624505772, and the loss is: 5.222738116566106\n",
      "When time is : 1519, get best_k: 4.244747792490002 best_b: -4.525154150197471, and the loss is: 5.2227364852209135\n",
      "When time is : 1520, get best_k: 4.244733984189606 best_b: -4.525197628458341, and the loss is: 5.222734877209575\n",
      "When time is : 1521, get best_k: 4.244743385375377 best_b: -4.52523715415004, and the loss is: 5.222733226546976\n",
      "When time is : 1522, get best_k: 4.244752786561147 best_b: -4.525276679841739, and the loss is: 5.222731575884371\n",
      "When time is : 1523, get best_k: 4.244762187746917 best_b: -4.525316205533438, and the loss is: 5.2227299252217785\n",
      "When time is : 1524, get best_k: 4.244771588932688 best_b: -4.525355731225138, and the loss is: 5.222728274559174\n",
      "When time is : 1525, get best_k: 4.244780990118458 best_b: -4.525395256916837, and the loss is: 5.222726623896581\n",
      "When time is : 1526, get best_k: 4.244790391304228 best_b: -4.525434782608536, and the loss is: 5.222724973233984\n",
      "When time is : 1527, get best_k: 4.2447997924899985 best_b: -4.525474308300235, and the loss is: 5.222723322571379\n",
      "When time is : 1528, get best_k: 4.244809193675769 best_b: -4.525513833991934, and the loss is: 5.2227216946410895\n",
      "When time is : 1529, get best_k: 4.244795385375373 best_b: -4.525557312252804, and the loss is: 5.222720083214852\n",
      "When time is : 1530, get best_k: 4.244804786561144 best_b: -4.525596837944503, and the loss is: 5.222718432552247\n",
      "When time is : 1531, get best_k: 4.244814187746914 best_b: -4.5256363636362025, and the loss is: 5.222716781889647\n",
      "When time is : 1532, get best_k: 4.244823588932684 best_b: -4.525675889327902, and the loss is: 5.2227151312270585\n",
      "When time is : 1533, get best_k: 4.2448329901184545 best_b: -4.525715415019601, and the loss is: 5.222713480564454\n",
      "When time is : 1534, get best_k: 4.244842391304225 best_b: -4.5257549407113, and the loss is: 5.2227118299018525\n",
      "When time is : 1535, get best_k: 4.244851792489995 best_b: -4.525794466402999, and the loss is: 5.222710179239263\n",
      "When time is : 1536, get best_k: 4.244861193675765 best_b: -4.525833992094698, and the loss is: 5.22270852857666\n",
      "When time is : 1537, get best_k: 4.244870594861536 best_b: -4.525873517786398, and the loss is: 5.222706904061255\n",
      "When time is : 1538, get best_k: 4.24485678656114 best_b: -4.525916996047267, and the loss is: 5.222705289220127\n",
      "When time is : 1539, get best_k: 4.2448661877469105 best_b: -4.525956521738967, and the loss is: 5.222703638557527\n",
      "When time is : 1540, get best_k: 4.244875588932681 best_b: -4.525996047430666, and the loss is: 5.222701987894926\n",
      "When time is : 1541, get best_k: 4.244884990118451 best_b: -4.526035573122365, and the loss is: 5.222700337232334\n",
      "When time is : 1542, get best_k: 4.244894391304221 best_b: -4.526075098814064, and the loss is: 5.222698686569734\n",
      "When time is : 1543, get best_k: 4.244903792489992 best_b: -4.526114624505763, and the loss is: 5.222697035907137\n",
      "When time is : 1544, get best_k: 4.244913193675762 best_b: -4.5261541501974625, and the loss is: 5.222695385244539\n",
      "When time is : 1545, get best_k: 4.244922594861532 best_b: -4.526193675889162, and the loss is: 5.22269373458194\n",
      "When time is : 1546, get best_k: 4.244931996047303 best_b: -4.526233201580861, and the loss is: 5.222692113481431\n",
      "When time is : 1547, get best_k: 4.244918187746907 best_b: -4.526276679841731, and the loss is: 5.2226904952254\n",
      "When time is : 1548, get best_k: 4.244927588932677 best_b: -4.52631620553343, and the loss is: 5.222688844562803\n",
      "When time is : 1549, get best_k: 4.244936990118448 best_b: -4.526355731225129, and the loss is: 5.222687193900206\n",
      "When time is : 1550, get best_k: 4.244946391304218 best_b: -4.526395256916828, and the loss is: 5.2226855432376125\n",
      "When time is : 1551, get best_k: 4.244955792489988 best_b: -4.526434782608527, and the loss is: 5.222683892575006\n",
      "When time is : 1552, get best_k: 4.244965193675759 best_b: -4.526474308300227, and the loss is: 5.222682241912414\n",
      "When time is : 1553, get best_k: 4.244974594861529 best_b: -4.526513833991926, and the loss is: 5.222680591249813\n",
      "When time is : 1554, get best_k: 4.244983996047299 best_b: -4.526553359683625, and the loss is: 5.2226789405872145\n",
      "When time is : 1555, get best_k: 4.24499339723307 best_b: -4.526592885375324, and the loss is: 5.2226773229016015\n",
      "When time is : 1556, get best_k: 4.244979588932674 best_b: -4.526636363636194, and the loss is: 5.222675701230681\n",
      "When time is : 1557, get best_k: 4.244988990118444 best_b: -4.526675889327893, and the loss is: 5.222674050568075\n",
      "When time is : 1558, get best_k: 4.244998391304215 best_b: -4.526715415019592, and the loss is: 5.222672399905478\n",
      "When time is : 1559, get best_k: 4.245007792489985 best_b: -4.5267549407112915, and the loss is: 5.222670749242886\n",
      "When time is : 1560, get best_k: 4.245017193675755 best_b: -4.526794466402991, and the loss is: 5.222669098580288\n",
      "When time is : 1561, get best_k: 4.245026594861526 best_b: -4.52683399209469, and the loss is: 5.222667447917683\n",
      "When time is : 1562, get best_k: 4.245035996047296 best_b: -4.526873517786389, and the loss is: 5.222665797255089\n",
      "When time is : 1563, get best_k: 4.245045397233066 best_b: -4.526913043478088, and the loss is: 5.222664146592486\n",
      "When time is : 1564, get best_k: 4.2450547984188365 best_b: -4.526952569169787, and the loss is: 5.222662532321775\n",
      "When time is : 1565, get best_k: 4.245040990118441 best_b: -4.526996047430657, and the loss is: 5.222660907235951\n",
      "When time is : 1566, get best_k: 4.245050391304211 best_b: -4.527035573122356, and the loss is: 5.222659256573355\n",
      "When time is : 1567, get best_k: 4.2450597924899816 best_b: -4.527075098814056, and the loss is: 5.2226576059107614\n",
      "When time is : 1568, get best_k: 4.245069193675752 best_b: -4.527114624505755, and the loss is: 5.222655955248156\n",
      "When time is : 1569, get best_k: 4.245078594861522 best_b: -4.527154150197454, and the loss is: 5.22265430458556\n",
      "When time is : 1570, get best_k: 4.2450879960472925 best_b: -4.527193675889153, and the loss is: 5.222652653922966\n",
      "When time is : 1571, get best_k: 4.245097397233063 best_b: -4.527233201580852, and the loss is: 5.222651003260366\n",
      "When time is : 1572, get best_k: 4.245106798418833 best_b: -4.5272727272725515, and the loss is: 5.222649352597771\n",
      "When time is : 1573, get best_k: 4.245116199604603 best_b: -4.527312252964251, and the loss is: 5.22264774174194\n",
      "When time is : 1574, get best_k: 4.245102391304208 best_b: -4.5273557312251205, and the loss is: 5.222646113241232\n",
      "When time is : 1575, get best_k: 4.245111792489978 best_b: -4.52739525691682, and the loss is: 5.22264446257863\n",
      "When time is : 1576, get best_k: 4.2451211936757485 best_b: -4.527434782608519, and the loss is: 5.222642811916036\n",
      "When time is : 1577, get best_k: 4.245130594861519 best_b: -4.527474308300218, and the loss is: 5.222641161253435\n",
      "When time is : 1578, get best_k: 4.245139996047289 best_b: -4.527513833991917, and the loss is: 5.222639510590842\n",
      "When time is : 1579, get best_k: 4.245149397233059 best_b: -4.527553359683616, and the loss is: 5.222637859928241\n",
      "When time is : 1580, get best_k: 4.24515879841883 best_b: -4.527592885375316, and the loss is: 5.222636209265636\n",
      "When time is : 1581, get best_k: 4.2451681996046 best_b: -4.527632411067015, and the loss is: 5.222634558603048\n",
      "When time is : 1582, get best_k: 4.24517760079037 best_b: -4.527671936758714, and the loss is: 5.222632951162117\n",
      "When time is : 1583, get best_k: 4.245163792489975 best_b: -4.527715415019584, and the loss is: 5.2226313192465055\n",
      "When time is : 1584, get best_k: 4.245173193675745 best_b: -4.527754940711283, and the loss is: 5.222629668583911\n",
      "When time is : 1585, get best_k: 4.245182594861515 best_b: -4.527794466402982, and the loss is: 5.222628017921316\n",
      "When time is : 1586, get best_k: 4.245191996047286 best_b: -4.527833992094681, and the loss is: 5.222626367258717\n",
      "When time is : 1587, get best_k: 4.245201397233056 best_b: -4.5278735177863805, and the loss is: 5.22262471659612\n",
      "When time is : 1588, get best_k: 4.245210798418826 best_b: -4.52791304347808, and the loss is: 5.222623065933521\n",
      "When time is : 1589, get best_k: 4.245220199604597 best_b: -4.527952569169779, and the loss is: 5.222621415270922\n",
      "When time is : 1590, get best_k: 4.245229600790367 best_b: -4.527992094861478, and the loss is: 5.2226197646083214\n",
      "When time is : 1591, get best_k: 4.245239001976137 best_b: -4.528031620553177, and the loss is: 5.222618160582286\n",
      "When time is : 1592, get best_k: 4.245225193675742 best_b: -4.528075098814047, and the loss is: 5.222616525251787\n",
      "When time is : 1593, get best_k: 4.245234594861512 best_b: -4.528114624505746, and the loss is: 5.222614874589189\n",
      "When time is : 1594, get best_k: 4.245243996047282 best_b: -4.528154150197445, and the loss is: 5.222613223926593\n",
      "When time is : 1595, get best_k: 4.245253397233053 best_b: -4.528193675889145, and the loss is: 5.222611573263991\n",
      "When time is : 1596, get best_k: 4.245262798418823 best_b: -4.528233201580844, and the loss is: 5.222609922601388\n",
      "When time is : 1597, get best_k: 4.245272199604593 best_b: -4.528272727272543, and the loss is: 5.222608271938792\n",
      "When time is : 1598, get best_k: 4.2452816007903635 best_b: -4.528312252964242, and the loss is: 5.222606621276195\n",
      "When time is : 1599, get best_k: 4.245291001976134 best_b: -4.528351778655941, and the loss is: 5.222604970613598\n",
      "When time is : 1600, get best_k: 4.245300403161904 best_b: -4.5283913043476405, and the loss is: 5.222603370002461\n",
      "When time is : 1601, get best_k: 4.245286594861509 best_b: -4.52843478260851, and the loss is: 5.222601731257063\n",
      "When time is : 1602, get best_k: 4.245295996047279 best_b: -4.5284743083002095, and the loss is: 5.222600080594469\n",
      "When time is : 1603, get best_k: 4.245305397233049 best_b: -4.528513833991909, and the loss is: 5.222598429931864\n",
      "When time is : 1604, get best_k: 4.2453147984188195 best_b: -4.528553359683608, and the loss is: 5.222596779269271\n",
      "When time is : 1605, get best_k: 4.24532419960459 best_b: -4.528592885375307, and the loss is: 5.222595128606676\n",
      "When time is : 1606, get best_k: 4.24533360079036 best_b: -4.528632411067006, and the loss is: 5.222593477944068\n",
      "When time is : 1607, get best_k: 4.2453430019761305 best_b: -4.528671936758705, and the loss is: 5.222591827281467\n",
      "When time is : 1608, get best_k: 4.245352403161901 best_b: -4.528711462450405, and the loss is: 5.222590176618874\n",
      "When time is : 1609, get best_k: 4.245361804347671 best_b: -4.528750988142104, and the loss is: 5.222588579422632\n",
      "When time is : 1610, get best_k: 4.2453479960472755 best_b: -4.528794466402974, and the loss is: 5.2225869372623395\n",
      "When time is : 1611, get best_k: 4.245357397233046 best_b: -4.528833992094673, and the loss is: 5.222585286599738\n",
      "When time is : 1612, get best_k: 4.245366798418816 best_b: -4.528873517786372, and the loss is: 5.222583635937146\n",
      "When time is : 1613, get best_k: 4.2453761996045865 best_b: -4.528913043478071, and the loss is: 5.222581985274543\n",
      "When time is : 1614, get best_k: 4.245385600790357 best_b: -4.52895256916977, and the loss is: 5.222580334611946\n",
      "When time is : 1615, get best_k: 4.245395001976127 best_b: -4.5289920948614695, and the loss is: 5.222578683949352\n",
      "When time is : 1616, get best_k: 4.245404403161897 best_b: -4.529031620553169, and the loss is: 5.222577033286751\n",
      "When time is : 1617, get best_k: 4.245413804347668 best_b: -4.529071146244868, and the loss is: 5.222575382624152\n",
      "When time is : 1618, get best_k: 4.245423205533438 best_b: -4.529110671936567, and the loss is: 5.2225737888428\n",
      "When time is : 1619, get best_k: 4.2454093972330424 best_b: -4.529154150197437, and the loss is: 5.222572143267614\n",
      "When time is : 1620, get best_k: 4.245418798418813 best_b: -4.529193675889136, and the loss is: 5.222570492605015\n",
      "When time is : 1621, get best_k: 4.245428199604583 best_b: -4.529233201580835, and the loss is: 5.2225688419424205\n",
      "When time is : 1622, get best_k: 4.245437600790353 best_b: -4.529272727272534, and the loss is: 5.222567191279821\n",
      "When time is : 1623, get best_k: 4.245447001976124 best_b: -4.529312252964234, and the loss is: 5.222565540617223\n",
      "When time is : 1624, get best_k: 4.245456403161894 best_b: -4.529351778655933, and the loss is: 5.222563889954631\n",
      "When time is : 1625, get best_k: 4.245465804347664 best_b: -4.529391304347632, and the loss is: 5.222562239292024\n",
      "When time is : 1626, get best_k: 4.245475205533435 best_b: -4.529430830039331, and the loss is: 5.222560588629428\n",
      "When time is : 1627, get best_k: 4.245484606719205 best_b: -4.52947035573103, and the loss is: 5.222558998262977\n",
      "When time is : 1628, get best_k: 4.245470798418809 best_b: -4.5295138339919, and the loss is: 5.222557349272892\n",
      "When time is : 1629, get best_k: 4.24548019960458 best_b: -4.529553359683599, and the loss is: 5.222555698610292\n",
      "When time is : 1630, get best_k: 4.24548960079035 best_b: -4.5295928853752985, and the loss is: 5.2225540479476935\n",
      "When time is : 1631, get best_k: 4.24549900197612 best_b: -4.529632411066998, and the loss is: 5.222552397285099\n",
      "When time is : 1632, get best_k: 4.245508403161891 best_b: -4.529671936758697, and the loss is: 5.222550746622496\n",
      "When time is : 1633, get best_k: 4.245517804347661 best_b: -4.529711462450396, and the loss is: 5.222549095959896\n",
      "When time is : 1634, get best_k: 4.245527205533431 best_b: -4.529750988142095, and the loss is: 5.2225474452973035\n",
      "When time is : 1635, get best_k: 4.2455366067192015 best_b: -4.529790513833794, and the loss is: 5.222545796377075\n",
      "When time is : 1636, get best_k: 4.245522798418806 best_b: -4.529833992094664, and the loss is: 5.22254420594077\n",
      "When time is : 1637, get best_k: 4.245532199604576 best_b: -4.529873517786363, and the loss is: 5.222542555278166\n",
      "When time is : 1638, get best_k: 4.245541600790347 best_b: -4.529913043478063, and the loss is: 5.22254090461557\n",
      "When time is : 1639, get best_k: 4.245551001976117 best_b: -4.529952569169762, and the loss is: 5.222539253952973\n",
      "When time is : 1640, get best_k: 4.245560403161887 best_b: -4.529992094861461, and the loss is: 5.222537603290376\n",
      "When time is : 1641, get best_k: 4.2455698043476575 best_b: -4.53003162055316, and the loss is: 5.222535952627779\n",
      "When time is : 1642, get best_k: 4.245579205533428 best_b: -4.530071146244859, and the loss is: 5.222534301965175\n",
      "When time is : 1643, get best_k: 4.245588606719198 best_b: -4.5301106719365585, and the loss is: 5.222532651302578\n",
      "When time is : 1644, get best_k: 4.245598007904968 best_b: -4.530150197628258, and the loss is: 5.222531005797256\n",
      "When time is : 1645, get best_k: 4.245584199604573 best_b: -4.5301936758891275, and the loss is: 5.222529411946041\n",
      "When time is : 1646, get best_k: 4.245593600790343 best_b: -4.530233201580827, and the loss is: 5.222527761283445\n",
      "When time is : 1647, get best_k: 4.2456030019761135 best_b: -4.530272727272526, and the loss is: 5.222526110620846\n",
      "When time is : 1648, get best_k: 4.245612403161884 best_b: -4.530312252964225, and the loss is: 5.22252445995825\n",
      "When time is : 1649, get best_k: 4.245621804347654 best_b: -4.530351778655924, and the loss is: 5.222522809295648\n",
      "When time is : 1650, get best_k: 4.245631205533424 best_b: -4.530391304347623, and the loss is: 5.222521158633055\n",
      "When time is : 1651, get best_k: 4.245640606719195 best_b: -4.530430830039323, and the loss is: 5.222519507970453\n",
      "When time is : 1652, get best_k: 4.245650007904965 best_b: -4.530470355731022, and the loss is: 5.222517857307864\n",
      "When time is : 1653, get best_k: 4.245659409090735 best_b: -4.530509881422721, and the loss is: 5.222516215217428\n",
      "When time is : 1654, get best_k: 4.24564560079034 best_b: -4.530553359683591, and the loss is: 5.222514617951327\n",
      "When time is : 1655, get best_k: 4.24565500197611 best_b: -4.53059288537529, and the loss is: 5.2225129672887185\n",
      "When time is : 1656, get best_k: 4.24566440316188 best_b: -4.530632411066989, and the loss is: 5.222511316626123\n",
      "When time is : 1657, get best_k: 4.245673804347651 best_b: -4.530671936758688, and the loss is: 5.222509665963527\n",
      "When time is : 1658, get best_k: 4.245683205533421 best_b: -4.5307114624503875, and the loss is: 5.222508015300931\n",
      "When time is : 1659, get best_k: 4.245692606719191 best_b: -4.530750988142087, and the loss is: 5.222506364638334\n",
      "When time is : 1660, get best_k: 4.245702007904962 best_b: -4.530790513833786, and the loss is: 5.222504713975734\n",
      "When time is : 1661, get best_k: 4.245711409090732 best_b: -4.530830039525485, and the loss is: 5.222503063313135\n",
      "When time is : 1662, get best_k: 4.245720810276502 best_b: -4.530869565217184, and the loss is: 5.222501424637595\n",
      "When time is : 1663, get best_k: 4.245707001976107 best_b: -4.530913043478054, and the loss is: 5.2224998239565945\n",
      "When time is : 1664, get best_k: 4.245716403161877 best_b: -4.530952569169753, and the loss is: 5.2224981732939915\n",
      "When time is : 1665, get best_k: 4.245725804347647 best_b: -4.530992094861452, and the loss is: 5.222496522631403\n",
      "When time is : 1666, get best_k: 4.245735205533418 best_b: -4.531031620553152, and the loss is: 5.222494871968803\n",
      "When time is : 1667, get best_k: 4.245744606719188 best_b: -4.531071146244851, and the loss is: 5.222493221306209\n",
      "When time is : 1668, get best_k: 4.245754007904958 best_b: -4.53111067193655, and the loss is: 5.222491570643605\n",
      "When time is : 1669, get best_k: 4.245763409090729 best_b: -4.531150197628249, and the loss is: 5.222489919981008\n",
      "When time is : 1670, get best_k: 4.245772810276499 best_b: -4.531189723319948, and the loss is: 5.22248826931841\n",
      "When time is : 1671, get best_k: 4.245782211462269 best_b: -4.5312292490116475, and the loss is: 5.22248663405777\n",
      "When time is : 1672, get best_k: 4.245768403161874 best_b: -4.531272727272517, and the loss is: 5.222485029961879\n",
      "When time is : 1673, get best_k: 4.245777804347644 best_b: -4.5313122529642165, and the loss is: 5.222483379299274\n",
      "When time is : 1674, get best_k: 4.245787205533414 best_b: -4.531351778655916, and the loss is: 5.222481728636676\n",
      "When time is : 1675, get best_k: 4.245796606719185 best_b: -4.531391304347615, and the loss is: 5.222480077974084\n",
      "When time is : 1676, get best_k: 4.245806007904955 best_b: -4.531430830039314, and the loss is: 5.222478427311475\n",
      "When time is : 1677, get best_k: 4.245815409090725 best_b: -4.531470355731013, and the loss is: 5.222476776648883\n",
      "When time is : 1678, get best_k: 4.2458248102764955 best_b: -4.531509881422712, and the loss is: 5.222475125986285\n",
      "When time is : 1679, get best_k: 4.245834211462266 best_b: -4.531549407114412, and the loss is: 5.22247347532369\n",
      "When time is : 1680, get best_k: 4.245843612648036 best_b: -4.531588932806111, and the loss is: 5.222471843477946\n",
      "When time is : 1681, get best_k: 4.245829804347641 best_b: -4.531632411066981, and the loss is: 5.222470235967152\n",
      "When time is : 1682, get best_k: 4.245839205533411 best_b: -4.53167193675868, and the loss is: 5.222468585304551\n",
      "When time is : 1683, get best_k: 4.245848606719181 best_b: -4.531711462450379, and the loss is: 5.222466934641959\n",
      "When time is : 1684, get best_k: 4.2458580079049515 best_b: -4.531750988142078, and the loss is: 5.222465283979358\n",
      "When time is : 1685, get best_k: 4.245867409090722 best_b: -4.531790513833777, and the loss is: 5.222463633316758\n",
      "When time is : 1686, get best_k: 4.245876810276492 best_b: -4.5318300395254765, and the loss is: 5.222461982654165\n",
      "When time is : 1687, get best_k: 4.245886211462262 best_b: -4.531869565217176, and the loss is: 5.222460331991562\n",
      "When time is : 1688, get best_k: 4.245895612648033 best_b: -4.531909090908875, and the loss is: 5.2224586813289635\n",
      "When time is : 1689, get best_k: 4.245905013833803 best_b: -4.531948616600574, and the loss is: 5.222457052898106\n",
      "When time is : 1690, get best_k: 4.2458912055334075 best_b: -4.531992094861444, and the loss is: 5.222455441972424\n",
      "When time is : 1691, get best_k: 4.245900606719178 best_b: -4.532031620553143, and the loss is: 5.222453791309835\n",
      "When time is : 1692, get best_k: 4.245910007904948 best_b: -4.532071146244842, and the loss is: 5.2224521406472295\n",
      "When time is : 1693, get best_k: 4.245919409090718 best_b: -4.532110671936541, and the loss is: 5.222450489984635\n",
      "When time is : 1694, get best_k: 4.245928810276489 best_b: -4.532150197628241, and the loss is: 5.222448839322034\n",
      "When time is : 1695, get best_k: 4.245938211462259 best_b: -4.53218972331994, and the loss is: 5.22244718865944\n",
      "When time is : 1696, get best_k: 4.245947612648029 best_b: -4.532229249011639, and the loss is: 5.22244553799684\n",
      "When time is : 1697, get best_k: 4.2459570138338 best_b: -4.532268774703338, and the loss is: 5.222443887334238\n",
      "When time is : 1698, get best_k: 4.24596641501957 best_b: -4.532308300395037, and the loss is: 5.222442262318285\n",
      "When time is : 1699, get best_k: 4.245952606719174 best_b: -4.532351778655907, and the loss is: 5.222440647977707\n",
      "When time is : 1700, get best_k: 4.245962007904945 best_b: -4.532391304347606, and the loss is: 5.2224389973151055\n",
      "When time is : 1701, get best_k: 4.245971409090715 best_b: -4.5324308300393055, and the loss is: 5.222437346652507\n",
      "When time is : 1702, get best_k: 4.245980810276485 best_b: -4.532470355731005, and the loss is: 5.222435695989907\n",
      "When time is : 1703, get best_k: 4.245990211462256 best_b: -4.532509881422704, and the loss is: 5.222434045327311\n",
      "When time is : 1704, get best_k: 4.245999612648026 best_b: -4.532549407114403, and the loss is: 5.222432394664717\n",
      "When time is : 1705, get best_k: 4.246009013833796 best_b: -4.532588932806102, and the loss is: 5.2224307440021125\n",
      "When time is : 1706, get best_k: 4.246018415019567 best_b: -4.532628458497801, and the loss is: 5.22242909333952\n",
      "When time is : 1707, get best_k: 4.246027816205337 best_b: -4.532667984189501, and the loss is: 5.222427471738453\n",
      "When time is : 1708, get best_k: 4.246014007904941 best_b: -4.53271146245037, and the loss is: 5.222425853982984\n",
      "When time is : 1709, get best_k: 4.246023409090712 best_b: -4.53275098814207, and the loss is: 5.222424203320388\n",
      "When time is : 1710, get best_k: 4.246032810276482 best_b: -4.532790513833769, and the loss is: 5.222422552657779\n",
      "When time is : 1711, get best_k: 4.246042211462252 best_b: -4.532830039525468, and the loss is: 5.2224209019951875\n",
      "When time is : 1712, get best_k: 4.2460516126480226 best_b: -4.532869565217167, and the loss is: 5.222419251332596\n",
      "When time is : 1713, get best_k: 4.246061013833793 best_b: -4.532909090908866, and the loss is: 5.222417600669992\n",
      "When time is : 1714, get best_k: 4.246070415019563 best_b: -4.5329486166005655, and the loss is: 5.222415950007395\n",
      "When time is : 1715, get best_k: 4.2460798162053335 best_b: -4.532988142292265, and the loss is: 5.222414299344796\n",
      "When time is : 1716, get best_k: 4.246089217391104 best_b: -4.533027667983964, and the loss is: 5.2224126811586284\n",
      "When time is : 1717, get best_k: 4.246075409090708 best_b: -4.533071146244834, and the loss is: 5.222411059988258\n",
      "When time is : 1718, get best_k: 4.2460848102764785 best_b: -4.533110671936533, and the loss is: 5.222409409325661\n",
      "When time is : 1719, get best_k: 4.246094211462249 best_b: -4.533150197628232, and the loss is: 5.222407758663057\n",
      "When time is : 1720, get best_k: 4.246103612648019 best_b: -4.533189723319931, and the loss is: 5.222406108000462\n",
      "When time is : 1721, get best_k: 4.2461130138337895 best_b: -4.53322924901163, and the loss is: 5.222404457337874\n",
      "When time is : 1722, get best_k: 4.24612241501956 best_b: -4.53326877470333, and the loss is: 5.2224028066752695\n",
      "When time is : 1723, get best_k: 4.24613181620533 best_b: -4.533308300395029, and the loss is: 5.222401156012671\n",
      "When time is : 1724, get best_k: 4.2461412173911 best_b: -4.533347826086728, and the loss is: 5.222399505350079\n",
      "When time is : 1725, get best_k: 4.246150618576871 best_b: -4.533387351778427, and the loss is: 5.222397890578803\n",
      "When time is : 1726, get best_k: 4.246136810276475 best_b: -4.533430830039297, and the loss is: 5.222396265993536\n",
      "When time is : 1727, get best_k: 4.2461462114622455 best_b: -4.533470355730996, and the loss is: 5.222394615330939\n",
      "When time is : 1728, get best_k: 4.246155612648016 best_b: -4.533509881422695, and the loss is: 5.222392964668343\n",
      "When time is : 1729, get best_k: 4.246165013833786 best_b: -4.5335494071143945, and the loss is: 5.222391314005735\n",
      "When time is : 1730, get best_k: 4.246174415019556 best_b: -4.533588932806094, and the loss is: 5.222389663343143\n",
      "When time is : 1731, get best_k: 4.246183816205327 best_b: -4.533628458497793, and the loss is: 5.222388012680543\n",
      "When time is : 1732, get best_k: 4.246193217391097 best_b: -4.533667984189492, and the loss is: 5.222386362017942\n",
      "When time is : 1733, get best_k: 4.246202618576867 best_b: -4.533707509881191, and the loss is: 5.222384711355347\n",
      "When time is : 1734, get best_k: 4.246212019762638 best_b: -4.53374703557289, and the loss is: 5.222383099998971\n",
      "When time is : 1735, get best_k: 4.246198211462242 best_b: -4.53379051383376, and the loss is: 5.222381471998815\n",
      "When time is : 1736, get best_k: 4.246207612648012 best_b: -4.533830039525459, and the loss is: 5.222379821336207\n",
      "When time is : 1737, get best_k: 4.246217013833783 best_b: -4.533869565217159, and the loss is: 5.222378170673617\n",
      "When time is : 1738, get best_k: 4.246226415019553 best_b: -4.533909090908858, and the loss is: 5.22237652001102\n",
      "When time is : 1739, get best_k: 4.246235816205323 best_b: -4.533948616600557, and the loss is: 5.22237486934842\n",
      "When time is : 1740, get best_k: 4.246245217391094 best_b: -4.533988142292256, and the loss is: 5.222373218685826\n",
      "When time is : 1741, get best_k: 4.246254618576864 best_b: -4.534027667983955, and the loss is: 5.222371568023223\n",
      "When time is : 1742, get best_k: 4.246264019762634 best_b: -4.5340671936756545, and the loss is: 5.222369917360631\n",
      "When time is : 1743, get best_k: 4.2462734209484045 best_b: -4.534106719367354, and the loss is: 5.222368309419142\n",
      "When time is : 1744, get best_k: 4.246259612648009 best_b: -4.5341501976282235, and the loss is: 5.222366678004089\n",
      "When time is : 1745, get best_k: 4.246269013833779 best_b: -4.534189723319923, and the loss is: 5.222365027341488\n",
      "When time is : 1746, get best_k: 4.24627841501955 best_b: -4.534229249011622, and the loss is: 5.2223633766788895\n",
      "When time is : 1747, get best_k: 4.24628781620532 best_b: -4.534268774703321, and the loss is: 5.222361726016292\n",
      "When time is : 1748, get best_k: 4.24629721739109 best_b: -4.53430830039502, and the loss is: 5.222360075353699\n",
      "When time is : 1749, get best_k: 4.2463066185768605 best_b: -4.534347826086719, and the loss is: 5.222358424691099\n",
      "When time is : 1750, get best_k: 4.246316019762631 best_b: -4.534387351778419, and the loss is: 5.222356774028496\n",
      "When time is : 1751, get best_k: 4.246325420948401 best_b: -4.534426877470118, and the loss is: 5.222355123365897\n",
      "When time is : 1752, get best_k: 4.2463348221341715 best_b: -4.534466403161817, and the loss is: 5.222353518839312\n",
      "When time is : 1753, get best_k: 4.246321013833776 best_b: -4.534509881422687, and the loss is: 5.222351884009367\n",
      "When time is : 1754, get best_k: 4.246330415019546 best_b: -4.534549407114386, and the loss is: 5.222350233346769\n",
      "When time is : 1755, get best_k: 4.2463398162053165 best_b: -4.534588932806085, and the loss is: 5.22234858268417\n",
      "When time is : 1756, get best_k: 4.246349217391087 best_b: -4.534628458497784, and the loss is: 5.2223469320215665\n",
      "When time is : 1757, get best_k: 4.246358618576857 best_b: -4.5346679841894835, and the loss is: 5.222345281358977\n",
      "When time is : 1758, get best_k: 4.2463680197626275 best_b: -4.534707509881183, and the loss is: 5.222343630696373\n",
      "When time is : 1759, get best_k: 4.246377420948398 best_b: -4.534747035572882, and the loss is: 5.222341980033772\n",
      "When time is : 1760, get best_k: 4.246386822134168 best_b: -4.534786561264581, and the loss is: 5.2223403293711765\n",
      "When time is : 1761, get best_k: 4.246396223319938 best_b: -4.53482608695628, and the loss is: 5.222338728259484\n",
      "When time is : 1762, get best_k: 4.246382415019543 best_b: -4.53486956521715, and the loss is: 5.2223370900146415\n",
      "When time is : 1763, get best_k: 4.246391816205313 best_b: -4.534909090908849, and the loss is: 5.2223354393520465\n",
      "When time is : 1764, get best_k: 4.2464012173910834 best_b: -4.534948616600548, and the loss is: 5.222333788689444\n",
      "When time is : 1765, get best_k: 4.246410618576854 best_b: -4.534988142292248, and the loss is: 5.22233213802685\n",
      "When time is : 1766, get best_k: 4.246420019762624 best_b: -4.535027667983947, and the loss is: 5.222330487364251\n",
      "When time is : 1767, get best_k: 4.246429420948394 best_b: -4.535067193675646, and the loss is: 5.222328836701656\n",
      "When time is : 1768, get best_k: 4.246438822134165 best_b: -4.535106719367345, and the loss is: 5.2223271860390525\n",
      "When time is : 1769, get best_k: 4.246448223319935 best_b: -4.535146245059044, and the loss is: 5.222325535376451\n",
      "When time is : 1770, get best_k: 4.246457624505705 best_b: -4.5351857707507435, and the loss is: 5.222323937679659\n",
      "When time is : 1771, get best_k: 4.24644381620531 best_b: -4.535229249011613, and the loss is: 5.222322296019919\n",
      "When time is : 1772, get best_k: 4.24645321739108 best_b: -4.5352687747033125, and the loss is: 5.22232064535732\n",
      "When time is : 1773, get best_k: 4.24646261857685 best_b: -4.535308300395012, and the loss is: 5.222318994694718\n",
      "When time is : 1774, get best_k: 4.246472019762621 best_b: -4.535347826086711, and the loss is: 5.222317344032125\n",
      "When time is : 1775, get best_k: 4.246481420948391 best_b: -4.53538735177841, and the loss is: 5.222315693369527\n",
      "When time is : 1776, get best_k: 4.246490822134161 best_b: -4.535426877470109, and the loss is: 5.222314042706925\n",
      "When time is : 1777, get best_k: 4.246500223319932 best_b: -4.535466403161808, and the loss is: 5.222312392044331\n",
      "When time is : 1778, get best_k: 4.246509624505702 best_b: -4.535505928853508, and the loss is: 5.222310741381741\n",
      "When time is : 1779, get best_k: 4.246519025691472 best_b: -4.535545454545207, and the loss is: 5.222309147099825\n",
      "When time is : 1780, get best_k: 4.246505217391077 best_b: -4.535588932806077, and the loss is: 5.222307502025193\n",
      "When time is : 1781, get best_k: 4.246514618576847 best_b: -4.535628458497776, and the loss is: 5.2223058513625995\n",
      "When time is : 1782, get best_k: 4.246524019762617 best_b: -4.535667984189475, and the loss is: 5.2223042007000045\n",
      "When time is : 1783, get best_k: 4.246533420948388 best_b: -4.535707509881174, and the loss is: 5.222302550037404\n",
      "When time is : 1784, get best_k: 4.246542822134158 best_b: -4.535747035572873, and the loss is: 5.2223008993748055\n",
      "When time is : 1785, get best_k: 4.246552223319928 best_b: -4.5357865612645725, and the loss is: 5.2222992487122015\n",
      "When time is : 1786, get best_k: 4.2465616245056985 best_b: -4.535826086956272, and the loss is: 5.222297598049607\n",
      "When time is : 1787, get best_k: 4.246571025691469 best_b: -4.535865612647971, and the loss is: 5.222295947387007\n",
      "When time is : 1788, get best_k: 4.246580426877239 best_b: -4.53590513833967, and the loss is: 5.222294356519993\n",
      "When time is : 1789, get best_k: 4.246566618576844 best_b: -4.53594861660054, and the loss is: 5.222292708030473\n",
      "When time is : 1790, get best_k: 4.246576019762614 best_b: -4.535988142292239, and the loss is: 5.222291057367865\n",
      "When time is : 1791, get best_k: 4.246585420948384 best_b: -4.536027667983938, and the loss is: 5.222289406705273\n",
      "When time is : 1792, get best_k: 4.2465948221341545 best_b: -4.536067193675637, and the loss is: 5.222287756042677\n",
      "When time is : 1793, get best_k: 4.246604223319925 best_b: -4.536106719367337, and the loss is: 5.22228610538008\n",
      "When time is : 1794, get best_k: 4.246613624505695 best_b: -4.536146245059036, and the loss is: 5.222284454717483\n",
      "When time is : 1795, get best_k: 4.246623025691465 best_b: -4.536185770750735, and the loss is: 5.222282804054886\n",
      "When time is : 1796, get best_k: 4.246632426877236 best_b: -4.536225296442434, and the loss is: 5.222281154634103\n",
      "When time is : 1797, get best_k: 4.24661861857684 best_b: -4.536268774703304, and the loss is: 5.2222795646983435\n",
      "When time is : 1798, get best_k: 4.2466280197626105 best_b: -4.536308300395003, and the loss is: 5.222277914035744\n",
      "When time is : 1799, get best_k: 4.246637420948381 best_b: -4.536347826086702, and the loss is: 5.222276263373153\n",
      "When time is : 1800, get best_k: 4.246646822134151 best_b: -4.5363873517784015, and the loss is: 5.22227461271055\n",
      "When time is : 1801, get best_k: 4.246656223319921 best_b: -4.536426877470101, and the loss is: 5.222272962047957\n",
      "When time is : 1802, get best_k: 4.246665624505692 best_b: -4.5364664031618, and the loss is: 5.222271311385355\n",
      "When time is : 1803, get best_k: 4.246675025691462 best_b: -4.536505928853499, and the loss is: 5.222269660722754\n",
      "When time is : 1804, get best_k: 4.246684426877232 best_b: -4.536545454545198, and the loss is: 5.222268010060163\n",
      "When time is : 1805, get best_k: 4.246693828063003 best_b: -4.536584980236897, and the loss is: 5.222266364054276\n",
      "When time is : 1806, get best_k: 4.246680019762607 best_b: -4.536628458497767, and the loss is: 5.222264770703618\n",
      "When time is : 1807, get best_k: 4.246689420948377 best_b: -4.536667984189466, and the loss is: 5.222263120041026\n",
      "When time is : 1808, get best_k: 4.246698822134148 best_b: -4.536707509881166, and the loss is: 5.222261469378423\n",
      "When time is : 1809, get best_k: 4.246708223319918 best_b: -4.536747035572865, and the loss is: 5.2222598187158304\n",
      "When time is : 1810, get best_k: 4.246717624505688 best_b: -4.536786561264564, and the loss is: 5.222258168053231\n",
      "When time is : 1811, get best_k: 4.246727025691459 best_b: -4.536826086956263, and the loss is: 5.222256517390635\n",
      "When time is : 1812, get best_k: 4.246736426877229 best_b: -4.536865612647962, and the loss is: 5.222254866728035\n",
      "When time is : 1813, get best_k: 4.246745828062999 best_b: -4.5369051383396615, and the loss is: 5.222253216065439\n",
      "When time is : 1814, get best_k: 4.24675522924877 best_b: -4.536944664031361, and the loss is: 5.222251573474453\n",
      "When time is : 1815, get best_k: 4.246741420948374 best_b: -4.5369881422922305, and the loss is: 5.222249976708902\n",
      "When time is : 1816, get best_k: 4.246750822134144 best_b: -4.53702766798393, and the loss is: 5.222248326046302\n",
      "When time is : 1817, get best_k: 4.246760223319915 best_b: -4.537067193675629, and the loss is: 5.222246675383707\n",
      "When time is : 1818, get best_k: 4.246769624505685 best_b: -4.537106719367328, and the loss is: 5.2222450247211025\n",
      "When time is : 1819, get best_k: 4.246779025691455 best_b: -4.537146245059027, and the loss is: 5.2222433740585075\n",
      "When time is : 1820, get best_k: 4.246788426877226 best_b: -4.537185770750726, and the loss is: 5.222241723395911\n",
      "When time is : 1821, get best_k: 4.246797828062996 best_b: -4.537225296442426, and the loss is: 5.222240072733308\n",
      "When time is : 1822, get best_k: 4.246807229248766 best_b: -4.537264822134125, and the loss is: 5.222238422070717\n",
      "When time is : 1823, get best_k: 4.2468166304345365 best_b: -4.537304347825824, and the loss is: 5.222236782894619\n",
      "When time is : 1824, get best_k: 4.246802822134141 best_b: -4.537347826086694, and the loss is: 5.2222351827141775\n",
      "When time is : 1825, get best_k: 4.246812223319911 best_b: -4.537387351778393, and the loss is: 5.222233532051581\n",
      "When time is : 1826, get best_k: 4.246821624505682 best_b: -4.537426877470092, and the loss is: 5.22223188138898\n",
      "When time is : 1827, get best_k: 4.246831025691452 best_b: -4.537466403161791, and the loss is: 5.222230230726385\n",
      "When time is : 1828, get best_k: 4.246840426877222 best_b: -4.5375059288534905, and the loss is: 5.2222285800637795\n",
      "When time is : 1829, get best_k: 4.2468498280629925 best_b: -4.53754545454519, and the loss is: 5.2222269294011845\n",
      "When time is : 1830, get best_k: 4.246859229248763 best_b: -4.537584980236889, and the loss is: 5.222225278738583\n",
      "When time is : 1831, get best_k: 4.246868630434533 best_b: -4.537624505928588, and the loss is: 5.2222236280759935\n",
      "When time is : 1832, get best_k: 4.246878031620303 best_b: -4.537664031620287, and the loss is: 5.22222199231479\n",
      "When time is : 1833, get best_k: 4.246864223319908 best_b: -4.537707509881157, and the loss is: 5.222220388719453\n",
      "When time is : 1834, get best_k: 4.246873624505678 best_b: -4.537747035572856, and the loss is: 5.222218738056861\n",
      "When time is : 1835, get best_k: 4.2468830256914485 best_b: -4.537786561264555, and the loss is: 5.222217087394252\n",
      "When time is : 1836, get best_k: 4.246892426877219 best_b: -4.537826086956255, and the loss is: 5.22221543673166\n",
      "When time is : 1837, get best_k: 4.246901828062989 best_b: -4.537865612647954, and the loss is: 5.22221378606906\n",
      "When time is : 1838, get best_k: 4.246911229248759 best_b: -4.537905138339653, and the loss is: 5.222212135406463\n",
      "When time is : 1839, get best_k: 4.24692063043453 best_b: -4.537944664031352, and the loss is: 5.222210484743864\n",
      "When time is : 1840, get best_k: 4.2469300316203 best_b: -4.537984189723051, and the loss is: 5.222208834081267\n",
      "When time is : 1841, get best_k: 4.24693943280607 best_b: -4.5380237154147505, and the loss is: 5.222207201734959\n",
      "When time is : 1842, get best_k: 4.246925624505675 best_b: -4.53806719367562, and the loss is: 5.222205594724728\n",
      "When time is : 1843, get best_k: 4.246935025691445 best_b: -4.5381067193673195, and the loss is: 5.222203944062138\n",
      "When time is : 1844, get best_k: 4.246944426877215 best_b: -4.538146245059019, and the loss is: 5.222202293399531\n",
      "When time is : 1845, get best_k: 4.246953828062986 best_b: -4.538185770750718, and the loss is: 5.222200642736933\n",
      "When time is : 1846, get best_k: 4.246963229248756 best_b: -4.538225296442417, and the loss is: 5.222198992074342\n",
      "When time is : 1847, get best_k: 4.246972630434526 best_b: -4.538264822134116, and the loss is: 5.222197341411736\n",
      "When time is : 1848, get best_k: 4.246982031620297 best_b: -4.538304347825815, and the loss is: 5.222195690749141\n",
      "When time is : 1849, get best_k: 4.246991432806067 best_b: -4.538343873517515, and the loss is: 5.222194040086544\n",
      "When time is : 1850, get best_k: 4.247000833991837 best_b: -4.538383399209214, and the loss is: 5.222192411155134\n",
      "When time is : 1851, get best_k: 4.246987025691442 best_b: -4.5384268774700836, and the loss is: 5.222190800730013\n",
      "When time is : 1852, get best_k: 4.246996426877212 best_b: -4.538466403161783, and the loss is: 5.222189150067408\n",
      "When time is : 1853, get best_k: 4.247005828062982 best_b: -4.538505928853482, and the loss is: 5.222187499404811\n",
      "When time is : 1854, get best_k: 4.247015229248753 best_b: -4.538545454545181, and the loss is: 5.222185848742214\n",
      "When time is : 1855, get best_k: 4.247024630434523 best_b: -4.53858498023688, and the loss is: 5.222184198079615\n",
      "When time is : 1856, get best_k: 4.247034031620293 best_b: -4.5386245059285795, and the loss is: 5.222182547417024\n",
      "When time is : 1857, get best_k: 4.247043432806064 best_b: -4.538664031620279, and the loss is: 5.222180896754421\n",
      "When time is : 1858, get best_k: 4.247052833991834 best_b: -4.538703557311978, and the loss is: 5.2221792460918195\n",
      "When time is : 1859, get best_k: 4.247062235177604 best_b: -4.538743083003677, and the loss is: 5.222177620575307\n",
      "When time is : 1860, get best_k: 4.247048426877209 best_b: -4.538786561264547, and the loss is: 5.222176006735286\n",
      "When time is : 1861, get best_k: 4.247057828062979 best_b: -4.538826086956246, and the loss is: 5.222174356072687\n",
      "When time is : 1862, get best_k: 4.247067229248749 best_b: -4.538865612647945, and the loss is: 5.222172705410087\n",
      "When time is : 1863, get best_k: 4.2470766304345196 best_b: -4.538905138339644, and the loss is: 5.222171054747483\n",
      "When time is : 1864, get best_k: 4.24708603162029 best_b: -4.538944664031344, and the loss is: 5.222169404084892\n",
      "When time is : 1865, get best_k: 4.24709543280606 best_b: -4.538984189723043, and the loss is: 5.222167753422291\n",
      "When time is : 1866, get best_k: 4.2471048339918305 best_b: -4.539023715414742, and the loss is: 5.222166102759698\n",
      "When time is : 1867, get best_k: 4.247114235177601 best_b: -4.539063241106441, and the loss is: 5.2221644520970925\n",
      "When time is : 1868, get best_k: 4.247123636363371 best_b: -4.53910276679814, and the loss is: 5.222162829995472\n",
      "When time is : 1869, get best_k: 4.2471098280629755 best_b: -4.53914624505901, and the loss is: 5.222161212740563\n",
      "When time is : 1870, get best_k: 4.247119229248746 best_b: -4.539185770750709, and the loss is: 5.222159562077958\n",
      "When time is : 1871, get best_k: 4.247128630434516 best_b: -4.5392252964424085, and the loss is: 5.222157911415367\n",
      "When time is : 1872, get best_k: 4.2471380316202865 best_b: -4.539264822134108, and the loss is: 5.222156260752768\n",
      "When time is : 1873, get best_k: 4.247147432806057 best_b: -4.539304347825807, and the loss is: 5.222154610090175\n",
      "When time is : 1874, get best_k: 4.247156833991827 best_b: -4.539343873517506, and the loss is: 5.22215295942757\n",
      "When time is : 1875, get best_k: 4.247166235177597 best_b: -4.539383399209205, and the loss is: 5.222151308764971\n",
      "When time is : 1876, get best_k: 4.247175636363368 best_b: -4.539422924900904, and the loss is: 5.222149658102371\n",
      "When time is : 1877, get best_k: 4.247185037549138 best_b: -4.539462450592604, and the loss is: 5.2221480394156465\n",
      "When time is : 1878, get best_k: 4.2471712292487425 best_b: -4.539505928853473, and the loss is: 5.22214641874584\n",
      "When time is : 1879, get best_k: 4.247180630434513 best_b: -4.5395454545451726, and the loss is: 5.222144768083235\n",
      "When time is : 1880, get best_k: 4.247190031620283 best_b: -4.539584980236872, and the loss is: 5.222143117420644\n",
      "When time is : 1881, get best_k: 4.247199432806053 best_b: -4.539624505928571, and the loss is: 5.222141466758039\n",
      "When time is : 1882, get best_k: 4.247208833991824 best_b: -4.53966403162027, and the loss is: 5.22213981609544\n",
      "When time is : 1883, get best_k: 4.247218235177594 best_b: -4.539703557311969, and the loss is: 5.22213816543285\n",
      "When time is : 1884, get best_k: 4.247227636363364 best_b: -4.5397430830036685, and the loss is: 5.22213651477025\n",
      "When time is : 1885, get best_k: 4.247237037549135 best_b: -4.539782608695368, and the loss is: 5.222134864107655\n",
      "When time is : 1886, get best_k: 4.247246438734905 best_b: -4.539822134387067, and the loss is: 5.2221332488358225\n",
      "When time is : 1887, get best_k: 4.247232630434509 best_b: -4.539865612647937, and the loss is: 5.222131624751118\n",
      "When time is : 1888, get best_k: 4.24724203162028 best_b: -4.539905138339636, and the loss is: 5.222129974088514\n",
      "When time is : 1889, get best_k: 4.24725143280605 best_b: -4.539944664031335, and the loss is: 5.222128323425916\n",
      "When time is : 1890, get best_k: 4.24726083399182 best_b: -4.539984189723034, and the loss is: 5.222126672763318\n",
      "When time is : 1891, get best_k: 4.247270235177591 best_b: -4.540023715414733, and the loss is: 5.222125022100722\n",
      "When time is : 1892, get best_k: 4.247279636363361 best_b: -4.540063241106433, and the loss is: 5.222123371438122\n",
      "When time is : 1893, get best_k: 4.247289037549131 best_b: -4.540102766798132, and the loss is: 5.222121720775526\n",
      "When time is : 1894, get best_k: 4.2472984387349015 best_b: -4.540142292489831, and the loss is: 5.222120070112929\n",
      "When time is : 1895, get best_k: 4.247307839920672 best_b: -4.54018181818153, and the loss is: 5.222118458255998\n",
      "When time is : 1896, get best_k: 4.247294031620276 best_b: -4.5402252964424, and the loss is: 5.222116830756394\n",
      "When time is : 1897, get best_k: 4.247303432806047 best_b: -4.540264822134099, and the loss is: 5.222115180093795\n",
      "When time is : 1898, get best_k: 4.247312833991817 best_b: -4.540304347825798, and the loss is: 5.222113529431198\n",
      "When time is : 1899, get best_k: 4.247322235177587 best_b: -4.5403438735174975, and the loss is: 5.222111878768598\n",
      "When time is : 1900, get best_k: 4.2473316363633575 best_b: -4.540383399209197, and the loss is: 5.222110228106001\n",
      "When time is : 1901, get best_k: 4.247341037549128 best_b: -4.540422924900896, and the loss is: 5.2221085774434055\n",
      "When time is : 1902, get best_k: 4.247350438734898 best_b: -4.540462450592595, and the loss is: 5.22210692678081\n",
      "When time is : 1903, get best_k: 4.2473598399206685 best_b: -4.540501976284294, and the loss is: 5.222105276118203\n",
      "When time is : 1904, get best_k: 4.247369241106439 best_b: -4.540541501975993, and the loss is: 5.222103667676169\n",
      "When time is : 1905, get best_k: 4.247355432806043 best_b: -4.540584980236863, and the loss is: 5.222102036761668\n",
      "When time is : 1906, get best_k: 4.2473648339918135 best_b: -4.540624505928562, and the loss is: 5.222100386099072\n",
      "When time is : 1907, get best_k: 4.247374235177584 best_b: -4.5406640316202616, and the loss is: 5.222098735436472\n",
      "When time is : 1908, get best_k: 4.247383636363354 best_b: -4.540703557311961, and the loss is: 5.2220970847738695\n",
      "When time is : 1909, get best_k: 4.2473930375491245 best_b: -4.54074308300366, and the loss is: 5.222095434111274\n",
      "When time is : 1910, get best_k: 4.247402438734895 best_b: -4.540782608695359, and the loss is: 5.222093783448677\n",
      "When time is : 1911, get best_k: 4.247411839920665 best_b: -4.540822134387058, and the loss is: 5.222092132786077\n",
      "When time is : 1912, get best_k: 4.247421241106435 best_b: -4.5408616600787575, and the loss is: 5.222090482123487\n",
      "When time is : 1913, get best_k: 4.247430642292206 best_b: -4.540901185770457, and the loss is: 5.2220888770963345\n",
      "When time is : 1914, get best_k: 4.24741683399181 best_b: -4.5409446640313265, and the loss is: 5.222087242766946\n",
      "When time is : 1915, get best_k: 4.2474262351775804 best_b: -4.540984189723026, and the loss is: 5.22208559210435\n",
      "When time is : 1916, get best_k: 4.247435636363351 best_b: -4.541023715414725, and the loss is: 5.222083941441751\n",
      "When time is : 1917, get best_k: 4.247445037549121 best_b: -4.541063241106424, and the loss is: 5.222082290779148\n",
      "When time is : 1918, get best_k: 4.247454438734891 best_b: -4.541102766798123, and the loss is: 5.222080640116553\n",
      "When time is : 1919, get best_k: 4.247463839920662 best_b: -4.541142292489822, and the loss is: 5.222078989453957\n",
      "When time is : 1920, get best_k: 4.247473241106432 best_b: -4.541181818181522, and the loss is: 5.222077338791357\n",
      "When time is : 1921, get best_k: 4.247482642292202 best_b: -4.541221343873221, and the loss is: 5.222075688128756\n",
      "When time is : 1922, get best_k: 4.247492043477973 best_b: -4.54126086956492, and the loss is: 5.22207408651651\n",
      "When time is : 1923, get best_k: 4.247478235177577 best_b: -4.54130434782579, and the loss is: 5.2220724487722165\n",
      "When time is : 1924, get best_k: 4.247487636363347 best_b: -4.541343873517489, and the loss is: 5.222070798109622\n",
      "When time is : 1925, get best_k: 4.247497037549118 best_b: -4.541383399209188, and the loss is: 5.222069147447025\n",
      "When time is : 1926, get best_k: 4.247506438734888 best_b: -4.541422924900887, and the loss is: 5.222067496784429\n",
      "When time is : 1927, get best_k: 4.247515839920658 best_b: -4.5414624505925865, and the loss is: 5.222065846121829\n",
      "When time is : 1928, get best_k: 4.247525241106429 best_b: -4.541501976284286, and the loss is: 5.222064195459234\n",
      "When time is : 1929, get best_k: 4.247534642292199 best_b: -4.541541501975985, and the loss is: 5.222062544796634\n",
      "When time is : 1930, get best_k: 4.247544043477969 best_b: -4.541581027667684, and the loss is: 5.222060894134031\n",
      "When time is : 1931, get best_k: 4.2475534446637395 best_b: -4.541620553359383, and the loss is: 5.22205929593668\n",
      "When time is : 1932, get best_k: 4.247539636363344 best_b: -4.541664031620253, and the loss is: 5.222057654777499\n",
      "When time is : 1933, get best_k: 4.247549037549114 best_b: -4.541703557311952, and the loss is: 5.2220560041149\n",
      "When time is : 1934, get best_k: 4.247558438734885 best_b: -4.541743083003651, and the loss is: 5.2220543534523065\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 1935, get best_k: 4.247567839920655 best_b: -4.5417826086953506, and the loss is: 5.2220527027897035\n",
      "When time is : 1936, get best_k: 4.247577241106425 best_b: -4.54182213438705, and the loss is: 5.222051052127105\n",
      "When time is : 1937, get best_k: 4.2475866422921955 best_b: -4.541861660078749, and the loss is: 5.22204940146451\n",
      "When time is : 1938, get best_k: 4.247596043477966 best_b: -4.541901185770448, and the loss is: 5.222047758396217\n",
      "When time is : 1939, get best_k: 4.247578978260575 best_b: -4.541944664031318, and the loss is: 5.222046192726856\n",
      "When time is : 1940, get best_k: 4.247588379446345 best_b: -4.541984189723017, and the loss is: 5.222044542064249\n",
      "When time is : 1941, get best_k: 4.247597780632115 best_b: -4.542023715414716, and the loss is: 5.222042891401654\n",
      "When time is : 1942, get best_k: 4.2476071818178855 best_b: -4.5420632411064155, and the loss is: 5.222041240739059\n",
      "When time is : 1943, get best_k: 4.247616583003656 best_b: -4.542102766798115, and the loss is: 5.222039590076464\n",
      "When time is : 1944, get best_k: 4.247625984189426 best_b: -4.542142292489814, and the loss is: 5.222037939413866\n",
      "When time is : 1945, get best_k: 4.2476353853751965 best_b: -4.542181818181513, and the loss is: 5.22203628875127\n",
      "When time is : 1946, get best_k: 4.247644786560967 best_b: -4.542221343873212, and the loss is: 5.222034670290005\n",
      "When time is : 1947, get best_k: 4.247627721343576 best_b: -4.542264822134082, and the loss is: 5.222033080013606\n",
      "When time is : 1948, get best_k: 4.247637122529346 best_b: -4.542304347825781, and the loss is: 5.222031429351016\n",
      "When time is : 1949, get best_k: 4.247646523715116 best_b: -4.54234387351748, and the loss is: 5.222029778688414\n",
      "When time is : 1950, get best_k: 4.2476559249008865 best_b: -4.5423833992091796, and the loss is: 5.222028128025815\n",
      "When time is : 1951, get best_k: 4.247665326086657 best_b: -4.542422924900879, and the loss is: 5.22202647736322\n",
      "When time is : 1952, get best_k: 4.247674727272427 best_b: -4.542462450592578, and the loss is: 5.222024826700613\n",
      "When time is : 1953, get best_k: 4.247684128458197 best_b: -4.542501976284277, and the loss is: 5.222023176038025\n",
      "When time is : 1954, get best_k: 4.247693529643968 best_b: -4.542541501975976, and the loss is: 5.222021582183798\n",
      "When time is : 1955, get best_k: 4.2476764644265765 best_b: -4.542584980236846, and the loss is: 5.222019967300368\n",
      "When time is : 1956, get best_k: 4.247685865612347 best_b: -4.542624505928545, and the loss is: 5.222018316637766\n",
      "When time is : 1957, get best_k: 4.247695266798117 best_b: -4.5426640316202445, and the loss is: 5.222016665975173\n",
      "When time is : 1958, get best_k: 4.2477046679838875 best_b: -4.542703557311944, and the loss is: 5.222015015312565\n",
      "When time is : 1959, get best_k: 4.247714069169658 best_b: -4.542743083003643, and the loss is: 5.222013364649979\n",
      "When time is : 1960, get best_k: 4.247723470355428 best_b: -4.542782608695342, and the loss is: 5.222011713987379\n",
      "When time is : 1961, get best_k: 4.247732871541198 best_b: -4.542822134387041, and the loss is: 5.2220100633247775\n",
      "When time is : 1962, get best_k: 4.247742272726969 best_b: -4.54286166007874, and the loss is: 5.222008494077595\n",
      "When time is : 1963, get best_k: 4.2477252075095775 best_b: -4.54290513833961, and the loss is: 5.222006854587127\n",
      "When time is : 1964, get best_k: 4.247734608695348 best_b: -4.542944664031309, and the loss is: 5.2220052039245175\n",
      "When time is : 1965, get best_k: 4.247744009881118 best_b: -4.5429841897230085, and the loss is: 5.222003553261932\n",
      "When time is : 1966, get best_k: 4.247753411066888 best_b: -4.543023715414708, and the loss is: 5.222001902599333\n",
      "When time is : 1967, get best_k: 4.247762812252659 best_b: -4.543063241106407, and the loss is: 5.222000251936725\n",
      "When time is : 1968, get best_k: 4.247772213438429 best_b: -4.543102766798106, and the loss is: 5.221998601274129\n",
      "When time is : 1969, get best_k: 4.247781614624199 best_b: -4.543142292489805, and the loss is: 5.221996964046449\n",
      "When time is : 1970, get best_k: 4.247764549406808 best_b: -4.543185770750675, and the loss is: 5.221995392536476\n",
      "When time is : 1971, get best_k: 4.2477739505925785 best_b: -4.543225296442374, and the loss is: 5.221993741873883\n",
      "When time is : 1972, get best_k: 4.247783351778349 best_b: -4.5432648221340735, and the loss is: 5.221992091211281\n",
      "When time is : 1973, get best_k: 4.247792752964119 best_b: -4.543304347825773, and the loss is: 5.221990440548684\n",
      "When time is : 1974, get best_k: 4.247802154149889 best_b: -4.543343873517472, and the loss is: 5.221988789886082\n",
      "When time is : 1975, get best_k: 4.24781155533566 best_b: -4.543383399209171, and the loss is: 5.221987139223488\n",
      "When time is : 1976, get best_k: 4.24782095652143 best_b: -4.54342292490087, and the loss is: 5.22198548856089\n",
      "When time is : 1977, get best_k: 4.2478303577072 best_b: -4.543462450592569, and the loss is: 5.221983875940244\n",
      "When time is : 1978, get best_k: 4.247813292489809 best_b: -4.543505928853439, and the loss is: 5.221982279823246\n",
      "When time is : 1979, get best_k: 4.247822693675579 best_b: -4.543545454545138, and the loss is: 5.221980629160635\n",
      "When time is : 1980, get best_k: 4.24783209486135 best_b: -4.5435849802368375, and the loss is: 5.221978978498041\n",
      "When time is : 1981, get best_k: 4.24784149604712 best_b: -4.543624505928537, and the loss is: 5.221977327835445\n",
      "When time is : 1982, get best_k: 4.24785089723289 best_b: -4.543664031620236, and the loss is: 5.221975677172846\n",
      "When time is : 1983, get best_k: 4.247860298418661 best_b: -4.543703557311935, and the loss is: 5.221974026510238\n",
      "When time is : 1984, get best_k: 4.247869699604431 best_b: -4.543743083003634, and the loss is: 5.2219723758476455\n",
      "When time is : 1985, get best_k: 4.247879100790201 best_b: -4.5437826086953335, and the loss is: 5.22197078783404\n",
      "When time is : 1986, get best_k: 4.24786203557281 best_b: -4.543826086956203, and the loss is: 5.22196916710999\n",
      "When time is : 1987, get best_k: 4.24787143675858 best_b: -4.5438656126479025, and the loss is: 5.221967516447398\n",
      "When time is : 1988, get best_k: 4.247880837944351 best_b: -4.543905138339602, and the loss is: 5.2219658657847985\n",
      "When time is : 1989, get best_k: 4.247890239130121 best_b: -4.543944664031301, and the loss is: 5.221964215122199\n",
      "When time is : 1990, get best_k: 4.247899640315891 best_b: -4.543984189723, and the loss is: 5.221962564459604\n",
      "When time is : 1991, get best_k: 4.247909041501662 best_b: -4.544023715414699, and the loss is: 5.221960913796998\n",
      "When time is : 1992, get best_k: 4.247918442687432 best_b: -4.544063241106398, and the loss is: 5.221959263134395\n",
      "When time is : 1993, get best_k: 4.247927843873202 best_b: -4.5441027667980975, and the loss is: 5.221957699727842\n",
      "When time is : 1994, get best_k: 4.247910778655811 best_b: -4.544146245058967, and the loss is: 5.22195605439675\n",
      "When time is : 1995, get best_k: 4.247920179841581 best_b: -4.5441857707506665, and the loss is: 5.221954403734148\n",
      "When time is : 1996, get best_k: 4.247929581027352 best_b: -4.544225296442366, and the loss is: 5.221952753071549\n",
      "When time is : 1997, get best_k: 4.247938982213122 best_b: -4.544264822134065, and the loss is: 5.221951102408957\n",
      "When time is : 1998, get best_k: 4.247948383398892 best_b: -4.544304347825764, and the loss is: 5.221949451746355\n",
      "When time is : 1999, get best_k: 4.2479577845846626 best_b: -4.544343873517463, and the loss is: 5.221947801083761\n",
      "When time is : 2000, get best_k: 4.247967185770433 best_b: -4.5443833992091625, and the loss is: 5.22194616969669\n",
      "When time is : 2001, get best_k: 4.247950120553042 best_b: -4.544426877470032, and the loss is: 5.221944592346104\n",
      "When time is : 2002, get best_k: 4.247959521738812 best_b: -4.5444664031617314, and the loss is: 5.221942941683506\n",
      "When time is : 2003, get best_k: 4.247968922924582 best_b: -4.544505928853431, and the loss is: 5.221941291020908\n",
      "When time is : 2004, get best_k: 4.247978324110353 best_b: -4.54454545454513, and the loss is: 5.221939640358309\n",
      "When time is : 2005, get best_k: 4.247987725296123 best_b: -4.544584980236829, and the loss is: 5.22193798969571\n",
      "When time is : 2006, get best_k: 4.247997126481893 best_b: -4.544624505928528, and the loss is: 5.221936339033117\n",
      "When time is : 2007, get best_k: 4.2480065276676635 best_b: -4.544664031620227, and the loss is: 5.221934688370512\n",
      "When time is : 2008, get best_k: 4.248015928853434 best_b: -4.5447035573119265, and the loss is: 5.221933081590492\n",
      "When time is : 2009, get best_k: 4.247998863636043 best_b: -4.544747035572796, and the loss is: 5.221931479632859\n",
      "When time is : 2010, get best_k: 4.248008264821813 best_b: -4.5447865612644955, and the loss is: 5.221929828970267\n",
      "When time is : 2011, get best_k: 4.248017666007583 best_b: -4.544826086956195, and the loss is: 5.2219281783076665\n",
      "When time is : 2012, get best_k: 4.2480270671933535 best_b: -4.544865612647894, and the loss is: 5.221926527645068\n",
      "When time is : 2013, get best_k: 4.248036468379124 best_b: -4.544905138339593, and the loss is: 5.22192487698247\n",
      "When time is : 2014, get best_k: 4.248045869564894 best_b: -4.544944664031292, and the loss is: 5.221923226319872\n",
      "When time is : 2015, get best_k: 4.2480552707506645 best_b: -4.5449841897229915, and the loss is: 5.221921575657271\n",
      "When time is : 2016, get best_k: 4.248064671936435 best_b: -4.545023715414691, and the loss is: 5.221919993484284\n",
      "When time is : 2017, get best_k: 4.248047606719044 best_b: -4.5450671936755604, and the loss is: 5.221918366919624\n",
      "When time is : 2018, get best_k: 4.248057007904814 best_b: -4.54510671936726, and the loss is: 5.221916716257022\n",
      "When time is : 2019, get best_k: 4.248066409090584 best_b: -4.545146245058959, and the loss is: 5.2219150655944215\n",
      "When time is : 2020, get best_k: 4.2480758102763545 best_b: -4.545185770750658, and the loss is: 5.221913414931823\n",
      "When time is : 2021, get best_k: 4.248085211462125 best_b: -4.545225296442357, and the loss is: 5.221911764269225\n",
      "When time is : 2022, get best_k: 4.248094612647895 best_b: -4.545264822134056, and the loss is: 5.221910113606629\n",
      "When time is : 2023, get best_k: 4.248104013833665 best_b: -4.5453043478257555, and the loss is: 5.221908463453142\n",
      "When time is : 2024, get best_k: 4.248086948616274 best_b: -4.545347826086625, and the loss is: 5.221906904868971\n",
      "When time is : 2025, get best_k: 4.2480963498020445 best_b: -4.5453873517783245, and the loss is: 5.221905254206368\n",
      "When time is : 2026, get best_k: 4.248105750987815 best_b: -4.545426877470024, and the loss is: 5.221903603543774\n",
      "When time is : 2027, get best_k: 4.248115152173585 best_b: -4.545466403161723, and the loss is: 5.221901952881174\n",
      "When time is : 2028, get best_k: 4.2481245533593555 best_b: -4.545505928853422, and the loss is: 5.221900302218585\n",
      "When time is : 2029, get best_k: 4.248133954545126 best_b: -4.545545454545121, and the loss is: 5.221898651555977\n",
      "When time is : 2030, get best_k: 4.248143355730896 best_b: -4.5455849802368204, and the loss is: 5.221897000893383\n",
      "When time is : 2031, get best_k: 4.248152756916666 best_b: -4.54562450592852, and the loss is: 5.221895375346934\n",
      "When time is : 2032, get best_k: 4.248135691699275 best_b: -4.545667984189389, and the loss is: 5.221893792155734\n",
      "When time is : 2033, get best_k: 4.2481450928850455 best_b: -4.545707509881089, and the loss is: 5.221892141493121\n",
      "When time is : 2034, get best_k: 4.248154494070816 best_b: -4.545747035572788, and the loss is: 5.221890490830532\n",
      "When time is : 2035, get best_k: 4.248163895256586 best_b: -4.545786561264487, and the loss is: 5.221888840167933\n",
      "When time is : 2036, get best_k: 4.248173296442356 best_b: -4.545826086956186, and the loss is: 5.221887189505341\n",
      "When time is : 2037, get best_k: 4.248182697628127 best_b: -4.545865612647885, and the loss is: 5.221885538842735\n",
      "When time is : 2038, get best_k: 4.248192098813897 best_b: -4.5459051383395845, and the loss is: 5.221883888180144\n",
      "When time is : 2039, get best_k: 4.248201499999667 best_b: -4.545944664031284, and the loss is: 5.221882287240733\n",
      "When time is : 2040, get best_k: 4.248184434782276 best_b: -4.5459881422921535, and the loss is: 5.2218806794424895\n",
      "When time is : 2041, get best_k: 4.2481938359680465 best_b: -4.546027667983853, and the loss is: 5.22187902877989\n",
      "When time is : 2042, get best_k: 4.248203237153817 best_b: -4.546067193675552, and the loss is: 5.221877378117292\n",
      "When time is : 2043, get best_k: 4.248212638339587 best_b: -4.546106719367251, and the loss is: 5.221875727454689\n",
      "When time is : 2044, get best_k: 4.248222039525357 best_b: -4.54614624505895, and the loss is: 5.22187407679209\n",
      "When time is : 2045, get best_k: 4.248231440711128 best_b: -4.5461857707506494, and the loss is: 5.221872426129496\n",
      "When time is : 2046, get best_k: 4.248240841896898 best_b: -4.546225296442349, and the loss is: 5.221870775466898\n",
      "When time is : 2047, get best_k: 4.248250243082668 best_b: -4.546264822134048, and the loss is: 5.221869199134524\n",
      "When time is : 2048, get best_k: 4.248233177865277 best_b: -4.546308300394918, and the loss is: 5.221867566729238\n",
      "When time is : 2049, get best_k: 4.248242579051047 best_b: -4.546347826086617, and the loss is: 5.221865916066642\n",
      "When time is : 2050, get best_k: 4.248251980236818 best_b: -4.546387351778316, and the loss is: 5.221864265404047\n",
      "When time is : 2051, get best_k: 4.248261381422588 best_b: -4.546426877470015, and the loss is: 5.221862614741444\n",
      "When time is : 2052, get best_k: 4.248270782608358 best_b: -4.546466403161714, and the loss is: 5.221860964078849\n",
      "When time is : 2053, get best_k: 4.248280183794129 best_b: -4.5465059288534135, and the loss is: 5.221859313416257\n",
      "When time is : 2054, get best_k: 4.248289584979899 best_b: -4.546545454545113, and the loss is: 5.2218576691033745\n",
      "When time is : 2055, get best_k: 4.248272519762508 best_b: -4.5465889328059825, and the loss is: 5.221856104678596\n",
      "When time is : 2056, get best_k: 4.248281920948278 best_b: -4.546628458497682, and the loss is: 5.221854454016\n",
      "When time is : 2057, get best_k: 4.248291322134048 best_b: -4.546667984189381, and the loss is: 5.221852803353399\n",
      "When time is : 2058, get best_k: 4.248300723319819 best_b: -4.54670750988108, and the loss is: 5.221851152690808\n",
      "When time is : 2059, get best_k: 4.248310124505589 best_b: -4.546747035572779, and the loss is: 5.221849502028202\n",
      "When time is : 2060, get best_k: 4.248319525691359 best_b: -4.546786561264478, and the loss is: 5.221847851365605\n",
      "When time is : 2061, get best_k: 4.24832892687713 best_b: -4.546826086956178, and the loss is: 5.221846200703006\n",
      "When time is : 2062, get best_k: 4.2483383280629 best_b: -4.546865612647877, and the loss is: 5.2218445809971765\n",
      "When time is : 2063, get best_k: 4.248321262845509 best_b: -4.546909090908747, and the loss is: 5.22184299196535\n",
      "When time is : 2064, get best_k: 4.248330664031279 best_b: -4.546948616600446, and the loss is: 5.221841341302761\n",
      "When time is : 2065, get best_k: 4.248340065217049 best_b: -4.546988142292145, and the loss is: 5.221839690640156\n",
      "When time is : 2066, get best_k: 4.24834946640282 best_b: -4.547027667983844, and the loss is: 5.221838039977559\n",
      "When time is : 2067, get best_k: 4.24835886758859 best_b: -4.547067193675543, and the loss is: 5.22183638931496\n",
      "When time is : 2068, get best_k: 4.24836826877436 best_b: -4.5471067193672425, and the loss is: 5.2218347386523645\n",
      "When time is : 2069, get best_k: 4.2483776699601306 best_b: -4.547146245058942, and the loss is: 5.221833087989763\n",
      "When time is : 2070, get best_k: 4.248387071145901 best_b: -4.547185770750641, and the loss is: 5.221831492890975\n",
      "When time is : 2071, get best_k: 4.24837000592851 best_b: -4.547229249011511, and the loss is: 5.221829879252108\n",
      "When time is : 2072, get best_k: 4.24837940711428 best_b: -4.54726877470321, and the loss is: 5.221828228589511\n",
      "When time is : 2073, get best_k: 4.24838880830005 best_b: -4.547308300394909, and the loss is: 5.221826577926908\n",
      "When time is : 2074, get best_k: 4.248398209485821 best_b: -4.547347826086608, and the loss is: 5.221824927264317\n",
      "When time is : 2075, get best_k: 4.248407610671591 best_b: -4.547387351778307, and the loss is: 5.221823276601719\n",
      "When time is : 2076, get best_k: 4.248417011857361 best_b: -4.547426877470007, and the loss is: 5.221821625939124\n",
      "When time is : 2077, get best_k: 4.2484264130431315 best_b: -4.547466403161706, and the loss is: 5.221819975276524\n",
      "When time is : 2078, get best_k: 4.248435814228902 best_b: -4.547505928853405, and the loss is: 5.221818404784761\n",
      "When time is : 2079, get best_k: 4.248418749011511 best_b: -4.547549407114275, and the loss is: 5.221816766538868\n",
      "When time is : 2080, get best_k: 4.248428150197281 best_b: -4.547588932805974, and the loss is: 5.2218151158762645\n",
      "When time is : 2081, get best_k: 4.248437551383051 best_b: -4.547628458497673, and the loss is: 5.22181346521367\n",
      "When time is : 2082, get best_k: 4.2484469525688215 best_b: -4.547667984189372, and the loss is: 5.22181181455107\n",
      "When time is : 2083, get best_k: 4.248456353754592 best_b: -4.5477075098810715, and the loss is: 5.221810163888472\n",
      "When time is : 2084, get best_k: 4.248465754940362 best_b: -4.547747035572771, and the loss is: 5.221808513225878\n",
      "When time is : 2085, get best_k: 4.2484751561261325 best_b: -4.54778656126447, and the loss is: 5.221806874753622\n",
      "When time is : 2086, get best_k: 4.248458090908741 best_b: -4.54783003952534, and the loss is: 5.22180530448822\n",
      "When time is : 2087, get best_k: 4.248467492094512 best_b: -4.547869565217039, and the loss is: 5.221803653825626\n",
      "When time is : 2088, get best_k: 4.248476893280282 best_b: -4.547909090908738, and the loss is: 5.221802003163027\n",
      "When time is : 2089, get best_k: 4.248486294466052 best_b: -4.547948616600437, and the loss is: 5.221800352500424\n",
      "When time is : 2090, get best_k: 4.2484956956518225 best_b: -4.547988142292136, and the loss is: 5.221798701837833\n",
      "When time is : 2091, get best_k: 4.248505096837593 best_b: -4.548027667983836, and the loss is: 5.2217970511752325\n",
      "When time is : 2092, get best_k: 4.248514498023363 best_b: -4.548067193675535, and the loss is: 5.221795400512636\n",
      "When time is : 2093, get best_k: 4.248523899209133 best_b: -4.548106719367234, and the loss is: 5.221793786647414\n",
      "When time is : 2094, get best_k: 4.248506833991742 best_b: -4.548150197628104, and the loss is: 5.221792191774978\n",
      "When time is : 2095, get best_k: 4.2485162351775125 best_b: -4.548189723319803, and the loss is: 5.221790541112381\n",
      "When time is : 2096, get best_k: 4.248525636363283 best_b: -4.548229249011502, and the loss is: 5.221788890449779\n",
      "When time is : 2097, get best_k: 4.248535037549053 best_b: -4.548268774703201, and the loss is: 5.221787239787182\n",
      "When time is : 2098, get best_k: 4.2485444387348235 best_b: -4.5483083003949005, and the loss is: 5.221785589124587\n",
      "When time is : 2099, get best_k: 4.248553839920594 best_b: -4.5483478260866, and the loss is: 5.221783938461987\n",
      "When time is : 2100, get best_k: 4.248563241106364 best_b: -4.548387351778299, and the loss is: 5.221782287799389\n",
      "When time is : 2101, get best_k: 4.248572642292134 best_b: -4.548426877469998, and the loss is: 5.221780698541213\n",
      "When time is : 2102, get best_k: 4.248555577074743 best_b: -4.548470355730868, and the loss is: 5.221779079061733\n",
      "When time is : 2103, get best_k: 4.2485649782605135 best_b: -4.548509881422567, and the loss is: 5.221777428399137\n",
      "When time is : 2104, get best_k: 4.248574379446284 best_b: -4.548549407114266, and the loss is: 5.221775777736538\n",
      "When time is : 2105, get best_k: 4.248583780632054 best_b: -4.548588932805965, and the loss is: 5.22177412707394\n",
      "When time is : 2106, get best_k: 4.248593181817824 best_b: -4.548628458497665, and the loss is: 5.221772476411341\n",
      "When time is : 2107, get best_k: 4.248602583003595 best_b: -4.548667984189364, and the loss is: 5.221770825748744\n",
      "When time is : 2108, get best_k: 4.248611984189365 best_b: -4.548707509881063, and the loss is: 5.221769175086147\n",
      "When time is : 2109, get best_k: 4.248621385375135 best_b: -4.548747035572762, and the loss is: 5.221767610435009\n",
      "When time is : 2110, get best_k: 4.248604320157744 best_b: -4.548790513833632, and the loss is: 5.221765966348495\n",
      "When time is : 2111, get best_k: 4.2486137213435144 best_b: -4.548830039525331, and the loss is: 5.221764315685892\n",
      "When time is : 2112, get best_k: 4.248623122529285 best_b: -4.54886956521703, and the loss is: 5.2217626650232924\n",
      "When time is : 2113, get best_k: 4.248632523715055 best_b: -4.5489090909087295, and the loss is: 5.22176101436069\n",
      "When time is : 2114, get best_k: 4.248641924900825 best_b: -4.548948616600429, and the loss is: 5.221759363698101\n",
      "When time is : 2115, get best_k: 4.248651326086596 best_b: -4.548988142292128, and the loss is: 5.221757713035498\n",
      "When time is : 2116, get best_k: 4.248660727272366 best_b: -4.549027667983827, and the loss is: 5.221756080403861\n",
      "When time is : 2117, get best_k: 4.248643662054975 best_b: -4.549071146244697, and the loss is: 5.221754541287646\n",
      "When time is : 2118, get best_k: 4.248676924900825 best_b: -4.549106719367226, and the loss is: 5.221752919803241\n",
      "When time is : 2119, get best_k: 4.248659859683434 best_b: -4.549150197628096, and the loss is: 5.221751227460321\n",
      "When time is : 2120, get best_k: 4.248669260869204 best_b: -4.549189723319795, and the loss is: 5.2217495767977296\n",
      "When time is : 2121, get best_k: 4.248678662054974 best_b: -4.5492292490114945, and the loss is: 5.22174792613513\n",
      "When time is : 2122, get best_k: 4.248688063240745 best_b: -4.549268774703194, and the loss is: 5.221746275472531\n",
      "When time is : 2123, get best_k: 4.248697464426515 best_b: -4.549308300394893, and the loss is: 5.221744624809931\n",
      "When time is : 2124, get best_k: 4.248706865612285 best_b: -4.549347826086592, and the loss is: 5.221742974147336\n",
      "When time is : 2125, get best_k: 4.248716266798056 best_b: -4.549387351778291, and the loss is: 5.221741389772093\n",
      "When time is : 2126, get best_k: 4.248699201580664 best_b: -4.549430830039161, and the loss is: 5.221739898809269\n",
      "When time is : 2127, get best_k: 4.2487324644265145 best_b: -4.5494664031616905, and the loss is: 5.221738229171471\n",
      "When time is : 2128, get best_k: 4.248715399209123 best_b: -4.54950988142256, and the loss is: 5.2217365479255005\n",
      "When time is : 2129, get best_k: 4.2487486620549735 best_b: -4.54954545454509, and the loss is: 5.221735068570859\n",
      "When time is : 2130, get best_k: 4.248731596837582 best_b: -4.5495889328059596, and the loss is: 5.221733211734637\n",
      "When time is : 2131, get best_k: 4.248740998023353 best_b: -4.549628458497659, and the loss is: 5.221731561072043\n",
      "When time is : 2132, get best_k: 4.248750399209123 best_b: -4.549667984189358, and the loss is: 5.221729910409436\n",
      "When time is : 2133, get best_k: 4.248759800394893 best_b: -4.549707509881057, and the loss is: 5.221728259746838\n",
      "When time is : 2134, get best_k: 4.2487692015806635 best_b: -4.549747035572756, and the loss is: 5.221726654689819\n",
      "When time is : 2135, get best_k: 4.248752136363272 best_b: -4.549790513833626, and the loss is: 5.22172534297206\n",
      "When time is : 2136, get best_k: 4.2487853992091225 best_b: -4.5498260869561555, and the loss is: 5.221723494089202\n",
      "When time is : 2137, get best_k: 4.248768333991731 best_b: -4.549869565217025, and the loss is: 5.221721992088297\n",
      "When time is : 2138, get best_k: 4.248801596837581 best_b: -4.549905138339555, and the loss is: 5.221720333488581\n",
      "When time is : 2139, get best_k: 4.24878453162019 best_b: -4.549948616600425, and the loss is: 5.221718641204532\n",
      "When time is : 2140, get best_k: 4.24881779446604 best_b: -4.549984189722954, and the loss is: 5.221717172887963\n",
      "When time is : 2141, get best_k: 4.248800729248649 best_b: -4.550027667983824, and the loss is: 5.2217152903207635\n",
      "When time is : 2142, get best_k: 4.248833992094499 best_b: -4.550063241106353, and the loss is: 5.221714012287344\n",
      "When time is : 2143, get best_k: 4.248816926877108 best_b: -4.550106719367223, and the loss is: 5.221711943659095\n",
      "When time is : 2144, get best_k: 4.248826328062878 best_b: -4.550146245058922, and the loss is: 5.221710292996498\n",
      "When time is : 2145, get best_k: 4.248835729248649 best_b: -4.5501857707506215, and the loss is: 5.22170871455642\n",
      "When time is : 2146, get best_k: 4.2488186640312575 best_b: -4.550229249011491, and the loss is: 5.22170752289226\n",
      "When time is : 2147, get best_k: 4.248851926877108 best_b: -4.550264822134021, and the loss is: 5.2217055539558\n",
      "When time is : 2148, get best_k: 4.2488348616597165 best_b: -4.5503083003948905, and the loss is: 5.221704172008491\n",
      "When time is : 2149, get best_k: 4.248868124505567 best_b: -4.55034387351742, and the loss is: 5.221702393355178\n",
      "When time is : 2150, get best_k: 4.248851059288175 best_b: -4.55038735177829, and the loss is: 5.22170082112473\n",
      "When time is : 2151, get best_k: 4.248884322134026 best_b: -4.550422924900819, and the loss is: 5.221699232754562\n",
      "When time is : 2152, get best_k: 4.248867256916634 best_b: -4.550466403161689, and the loss is: 5.221697470240953\n",
      "When time is : 2153, get best_k: 4.2489005197624845 best_b: -4.5505019762842185, and the loss is: 5.221696072153946\n",
      "When time is : 2154, get best_k: 4.248883454545093 best_b: -4.550545454545088, and the loss is: 5.22169411935719\n",
      "When time is : 2155, get best_k: 4.2489167173909435 best_b: -4.550581027667618, and the loss is: 5.221692911553326\n",
      "When time is : 2156, get best_k: 4.248899652173552 best_b: -4.5506245059284876, and the loss is: 5.221690798374718\n",
      "When time is : 2157, get best_k: 4.24890644861624 best_b: -4.550664031620187, and the loss is: 5.2216891899027775\n",
      "When time is : 2158, get best_k: 4.248913245058928 best_b: -4.550703557311886, and the loss is: 5.221687581430838\n",
      "When time is : 2159, get best_k: 4.2489200415016155 best_b: -4.550743083003585, and the loss is: 5.221685972958903\n",
      "When time is : 2160, get best_k: 4.248926837944303 best_b: -4.550782608695284, and the loss is: 5.221684364486963\n",
      "When time is : 2161, get best_k: 4.248933634386991 best_b: -4.5508221343869835, and the loss is: 5.221682756015022\n",
      "When time is : 2162, get best_k: 4.248940430829679 best_b: -4.550861660078683, and the loss is: 5.221681147543087\n",
      "When time is : 2163, get best_k: 4.2489472272723665 best_b: -4.550901185770382, and the loss is: 5.221679539071151\n",
      "When time is : 2164, get best_k: 4.248954023715054 best_b: -4.550940711462081, and the loss is: 5.221677930599214\n",
      "When time is : 2165, get best_k: 4.248960820157742 best_b: -4.55098023715378, and the loss is: 5.221676322127275\n",
      "When time is : 2166, get best_k: 4.24896761660043 best_b: -4.551019762845479, and the loss is: 5.22167471365534\n",
      "When time is : 2167, get best_k: 4.2489744130431175 best_b: -4.551059288537179, and the loss is: 5.221673105183399\n",
      "When time is : 2168, get best_k: 4.248981209485805 best_b: -4.551098814228878, and the loss is: 5.221671499665758\n",
      "When time is : 2169, get best_k: 4.248964144268414 best_b: -4.5511422924897476, and the loss is: 5.221670203998026\n",
      "When time is : 2170, get best_k: 4.248997407114264 best_b: -4.551177865612277, and the loss is: 5.221668339065147\n",
      "When time is : 2171, get best_k: 4.248980341896873 best_b: -4.551221343873147, and the loss is: 5.221666853114267\n",
      "When time is : 2172, get best_k: 4.249013604742723 best_b: -4.551256916995676, and the loss is: 5.221665178464522\n",
      "When time is : 2173, get best_k: 4.248996539525332 best_b: -4.551300395256546, and the loss is: 5.221663502230496\n",
      "When time is : 2174, get best_k: 4.249029802371182 best_b: -4.5513359683790755, and the loss is: 5.221662017863905\n",
      "When time is : 2175, get best_k: 4.249012737153791 best_b: -4.551379446639945, and the loss is: 5.221660190245322\n",
      "When time is : 2176, get best_k: 4.249019533596479 best_b: -4.5514189723316445, and the loss is: 5.2216585817733785\n",
      "When time is : 2177, get best_k: 4.249026330039166 best_b: -4.551458498023344, and the loss is: 5.221656973301448\n",
      "When time is : 2178, get best_k: 4.249033126481854 best_b: -4.551498023715043, and the loss is: 5.221655364829504\n",
      "When time is : 2179, get best_k: 4.249039922924542 best_b: -4.551537549406742, and the loss is: 5.221653756357565\n",
      "When time is : 2180, get best_k: 4.24904671936723 best_b: -4.551577075098441, and the loss is: 5.221652147885628\n",
      "When time is : 2181, get best_k: 4.249053515809917 best_b: -4.55161660079014, and the loss is: 5.221650539413694\n",
      "When time is : 2182, get best_k: 4.249060312252605 best_b: -4.55165612648184, and the loss is: 5.221648930941754\n",
      "When time is : 2183, get best_k: 4.249067108695293 best_b: -4.551695652173539, and the loss is: 5.2216473224698206\n",
      "When time is : 2184, get best_k: 4.249073905137981 best_b: -4.551735177865238, and the loss is: 5.221645713997879\n",
      "When time is : 2185, get best_k: 4.249080701580668 best_b: -4.551774703556937, and the loss is: 5.221644105525946\n",
      "When time is : 2186, get best_k: 4.249087498023356 best_b: -4.551814229248636, and the loss is: 5.2216424970540025\n",
      "When time is : 2187, get best_k: 4.249094294466044 best_b: -4.5518537549403355, and the loss is: 5.2216408885820655\n",
      "When time is : 2188, get best_k: 4.249101090908732 best_b: -4.551893280632035, and the loss is: 5.221639280110126\n",
      "When time is : 2189, get best_k: 4.249107887351419 best_b: -4.551932806323734, and the loss is: 5.221637671638193\n",
      "When time is : 2190, get best_k: 4.249114683794107 best_b: -4.551972332015433, and the loss is: 5.221636063166253\n",
      "When time is : 2191, get best_k: 4.249121480236795 best_b: -4.552011857707132, and the loss is: 5.221634454694313\n",
      "When time is : 2192, get best_k: 4.249128276679483 best_b: -4.552051383398831, and the loss is: 5.221632846222378\n",
      "When time is : 2193, get best_k: 4.24913507312217 best_b: -4.552090909090531, and the loss is: 5.2216312377504375\n",
      "When time is : 2194, get best_k: 4.249141869564858 best_b: -4.55213043478223, and the loss is: 5.221629629278504\n",
      "When time is : 2195, get best_k: 4.249148666007546 best_b: -4.552169960473929, and the loss is: 5.221628020806557\n",
      "When time is : 2196, get best_k: 4.249155462450234 best_b: -4.552209486165628, and the loss is: 5.221626412334621\n",
      "When time is : 2197, get best_k: 4.249162258892921 best_b: -4.552249011857327, and the loss is: 5.221624803862686\n",
      "When time is : 2198, get best_k: 4.249169055335609 best_b: -4.5522885375490265, and the loss is: 5.22162319539075\n",
      "When time is : 2199, get best_k: 4.249175851778297 best_b: -4.552328063240726, and the loss is: 5.221621586918813\n",
      "When time is : 2200, get best_k: 4.249182648220985 best_b: -4.552367588932425, and the loss is: 5.221619978446873\n",
      "When time is : 2201, get best_k: 4.249189444663672 best_b: -4.552407114624124, and the loss is: 5.221618369974935\n",
      "When time is : 2202, get best_k: 4.24919624110636 best_b: -4.552446640315823, and the loss is: 5.221616761502998\n",
      "When time is : 2203, get best_k: 4.249203037549048 best_b: -4.552486166007522, and the loss is: 5.221615153031062\n",
      "When time is : 2204, get best_k: 4.249209833991736 best_b: -4.552525691699222, and the loss is: 5.221613544559126\n",
      "When time is : 2205, get best_k: 4.249216630434423 best_b: -4.552565217390921, and the loss is: 5.221611936087188\n",
      "When time is : 2206, get best_k: 4.249223426877111 best_b: -4.55260474308262, and the loss is: 5.221610327615251\n",
      "When time is : 2207, get best_k: 4.249230223319799 best_b: -4.552644268774319, and the loss is: 5.221608719143311\n",
      "When time is : 2208, get best_k: 4.249237019762487 best_b: -4.552683794466018, and the loss is: 5.221607110671378\n",
      "When time is : 2209, get best_k: 4.249243816205174 best_b: -4.5527233201577175, and the loss is: 5.221605502199438\n",
      "When time is : 2210, get best_k: 4.249250612647862 best_b: -4.552762845849417, and the loss is: 5.221603893727501\n",
      "When time is : 2211, get best_k: 4.24925740909055 best_b: -4.552802371541116, and the loss is: 5.2216022852555595\n",
      "When time is : 2212, get best_k: 4.249264205533238 best_b: -4.552841897232815, and the loss is: 5.221600676783628\n",
      "When time is : 2213, get best_k: 4.249271001975925 best_b: -4.552881422924514, and the loss is: 5.221599068311689\n",
      "When time is : 2214, get best_k: 4.249277798418613 best_b: -4.552920948616213, and the loss is: 5.221597459839756\n",
      "When time is : 2215, get best_k: 4.249284594861301 best_b: -4.552960474307913, and the loss is: 5.2215958513678125\n",
      "When time is : 2216, get best_k: 4.249291391303989 best_b: -4.552999999999612, and the loss is: 5.221594242895874\n",
      "When time is : 2217, get best_k: 4.2492981877466764 best_b: -4.553039525691311, and the loss is: 5.221592634423937\n",
      "When time is : 2218, get best_k: 4.249304984189364 best_b: -4.55307905138301, and the loss is: 5.221591025951993\n",
      "When time is : 2219, get best_k: 4.249311780632052 best_b: -4.553118577074709, and the loss is: 5.221589417480064\n",
      "When time is : 2220, get best_k: 4.24931857707474 best_b: -4.5531581027664085, and the loss is: 5.221587809008122\n",
      "When time is : 2221, get best_k: 4.2493253735174275 best_b: -4.553197628458108, and the loss is: 5.221586200536186\n",
      "When time is : 2222, get best_k: 4.249332169960115 best_b: -4.553237154149807, and the loss is: 5.221584592064248\n",
      "When time is : 2223, get best_k: 4.249338966402803 best_b: -4.553276679841506, and the loss is: 5.221582983592312\n",
      "When time is : 2224, get best_k: 4.249345762845491 best_b: -4.553316205533205, and the loss is: 5.2215813751203735\n",
      "When time is : 2225, get best_k: 4.2493525592881785 best_b: -4.5533557312249044, and the loss is: 5.221579766648435\n",
      "When time is : 2226, get best_k: 4.249359355730866 best_b: -4.553395256916604, and the loss is: 5.221578158176505\n",
      "When time is : 2227, get best_k: 4.249366152173554 best_b: -4.553434782608303, and the loss is: 5.221576549704562\n",
      "When time is : 2228, get best_k: 4.249372948616242 best_b: -4.553474308300002, and the loss is: 5.221574941232626\n",
      "When time is : 2229, get best_k: 4.2493797450589295 best_b: -4.553513833991701, and the loss is: 5.221573332760686\n",
      "When time is : 2230, get best_k: 4.249386541501617 best_b: -4.5535533596834, and the loss is: 5.2215717242887525\n",
      "When time is : 2231, get best_k: 4.249393337944305 best_b: -4.5535928853750995, and the loss is: 5.221570115816815\n",
      "When time is : 2232, get best_k: 4.249400134386993 best_b: -4.553632411066799, and the loss is: 5.221568507344876\n",
      "When time is : 2233, get best_k: 4.2494069308296805 best_b: -4.553671936758498, and the loss is: 5.221566898872937\n",
      "When time is : 2234, get best_k: 4.249413727272368 best_b: -4.553711462450197, and the loss is: 5.221565290400999\n",
      "When time is : 2235, get best_k: 4.249420523715056 best_b: -4.553750988141896, and the loss is: 5.22156368474932\n",
      "When time is : 2236, get best_k: 4.249403458497665 best_b: -4.553794466402766, and the loss is: 5.221562079403501\n",
      "When time is : 2237, get best_k: 4.2494102549403525 best_b: -4.553833992094465, and the loss is: 5.221560470931565\n",
      "When time is : 2238, get best_k: 4.24941705138304 best_b: -4.5538735177861644, and the loss is: 5.221558862459624\n",
      "When time is : 2239, get best_k: 4.249423847825728 best_b: -4.553913043477864, and the loss is: 5.221557253987688\n",
      "When time is : 2240, get best_k: 4.249430644268416 best_b: -4.553952569169563, and the loss is: 5.221555645515751\n",
      "When time is : 2241, get best_k: 4.2494374407111035 best_b: -4.553992094861262, and the loss is: 5.221554037043819\n",
      "When time is : 2242, get best_k: 4.249444237153791 best_b: -4.554031620552961, and the loss is: 5.221552428571877\n",
      "When time is : 2243, get best_k: 4.249451033596479 best_b: -4.55407114624466, and the loss is: 5.2215508200999405\n",
      "When time is : 2244, get best_k: 4.249457830039167 best_b: -4.5541106719363595, and the loss is: 5.221549211628001\n",
      "When time is : 2245, get best_k: 4.2494646264818545 best_b: -4.554150197628059, and the loss is: 5.221547603156063\n",
      "When time is : 2246, get best_k: 4.249471422924542 best_b: -4.554189723319758, and the loss is: 5.221545994684131\n",
      "When time is : 2247, get best_k: 4.24947821936723 best_b: -4.554229249011457, and the loss is: 5.221544386212187\n",
      "When time is : 2248, get best_k: 4.249485015809918 best_b: -4.554268774703156, and the loss is: 5.221542777740246\n",
      "When time is : 2249, get best_k: 4.2494918122526055 best_b: -4.5543083003948555, and the loss is: 5.221541169268316\n",
      "When time is : 2250, get best_k: 4.249498608695293 best_b: -4.554347826086555, and the loss is: 5.221539560796374\n",
      "When time is : 2251, get best_k: 4.249505405137981 best_b: -4.554387351778254, and the loss is: 5.2215379523244385\n",
      "When time is : 2252, get best_k: 4.249512201580669 best_b: -4.554426877469953, and the loss is: 5.221536343852502\n",
      "When time is : 2253, get best_k: 4.2495189980233565 best_b: -4.554466403161652, and the loss is: 5.2215347353805655\n",
      "When time is : 2254, get best_k: 4.249525794466044 best_b: -4.554505928853351, and the loss is: 5.221533126908627\n",
      "When time is : 2255, get best_k: 4.249532590908732 best_b: -4.5545454545450506, and the loss is: 5.221531518436693\n",
      "When time is : 2256, get best_k: 4.24953938735142 best_b: -4.55458498023675, and the loss is: 5.221529909964748\n",
      "When time is : 2257, get best_k: 4.2495461837941075 best_b: -4.554624505928449, and the loss is: 5.221528301492812\n",
      "When time is : 2258, get best_k: 4.249552980236795 best_b: -4.554664031620148, and the loss is: 5.221526693020877\n",
      "When time is : 2259, get best_k: 4.249559776679483 best_b: -4.554703557311847, and the loss is: 5.221525084548937\n",
      "When time is : 2260, get best_k: 4.249566573122171 best_b: -4.5547430830035465, and the loss is: 5.221523476077005\n",
      "When time is : 2261, get best_k: 4.2495733695648585 best_b: -4.554782608695246, and the loss is: 5.221521867605061\n",
      "When time is : 2262, get best_k: 4.249580166007546 best_b: -4.554822134386945, and the loss is: 5.221520259133124\n",
      "When time is : 2263, get best_k: 4.249586962450234 best_b: -4.554861660078644, and the loss is: 5.221518650661191\n",
      "When time is : 2264, get best_k: 4.249593758892922 best_b: -4.554901185770343, and the loss is: 5.221517042189252\n",
      "When time is : 2265, get best_k: 4.2496005553356095 best_b: -4.554940711462042, and the loss is: 5.221515433717312\n",
      "When time is : 2266, get best_k: 4.249607351778297 best_b: -4.554980237153742, and the loss is: 5.221513825245371\n",
      "When time is : 2267, get best_k: 4.249614148220985 best_b: -4.555019762845441, and the loss is: 5.2215122167734425\n",
      "When time is : 2268, get best_k: 4.249620944663673 best_b: -4.55505928853714, and the loss is: 5.221510608301504\n",
      "When time is : 2269, get best_k: 4.2496277411063605 best_b: -4.555098814228839, and the loss is: 5.221508999829556\n",
      "When time is : 2270, get best_k: 4.249634537549048 best_b: -4.555138339920538, and the loss is: 5.2215073913576235\n",
      "When time is : 2271, get best_k: 4.249641333991736 best_b: -4.5551778656122375, and the loss is: 5.221505782885686\n",
      "When time is : 2272, get best_k: 4.249648130434424 best_b: -4.555217391303937, and the loss is: 5.221504174413746\n",
      "When time is : 2273, get best_k: 4.2496549268771115 best_b: -4.555256916995636, and the loss is: 5.221502565941808\n",
      "When time is : 2274, get best_k: 4.249661723319799 best_b: -4.555296442687335, and the loss is: 5.22150095746987\n",
      "When time is : 2275, get best_k: 4.249668519762487 best_b: -4.555335968379034, and the loss is: 5.221499348997939\n",
      "When time is : 2276, get best_k: 4.249675316205175 best_b: -4.555375494070733, and the loss is: 5.221497740525996\n",
      "When time is : 2277, get best_k: 4.2496821126478626 best_b: -4.555415019762433, and the loss is: 5.221496132054062\n",
      "When time is : 2278, get best_k: 4.24968890909055 best_b: -4.555454545454132, and the loss is: 5.221494523582129\n",
      "When time is : 2279, get best_k: 4.249695705533238 best_b: -4.555494071145831, and the loss is: 5.221492915110186\n",
      "When time is : 2280, get best_k: 4.249702501975926 best_b: -4.55553359683753, and the loss is: 5.221491306638247\n",
      "When time is : 2281, get best_k: 4.249709298418614 best_b: -4.555573122529229, and the loss is: 5.221489698166314\n",
      "When time is : 2282, get best_k: 4.249716094861301 best_b: -4.5556126482209285, and the loss is: 5.221488089694368\n",
      "When time is : 2283, get best_k: 4.249722891303989 best_b: -4.555652173912628, and the loss is: 5.221486481222434\n",
      "When time is : 2284, get best_k: 4.249729687746677 best_b: -4.555691699604327, and the loss is: 5.221484872750497\n",
      "When time is : 2285, get best_k: 4.249736484189365 best_b: -4.555731225296026, and the loss is: 5.221483264278563\n",
      "When time is : 2286, get best_k: 4.249743280632052 best_b: -4.555770750987725, and the loss is: 5.221481655806623\n",
      "When time is : 2287, get best_k: 4.24975007707474 best_b: -4.555810276679424, and the loss is: 5.221480047334681\n",
      "When time is : 2288, get best_k: 4.249756873517428 best_b: -4.555849802371124, and the loss is: 5.221478438862751\n",
      "When time is : 2289, get best_k: 4.249763669960116 best_b: -4.555889328062823, and the loss is: 5.221476830390811\n",
      "When time is : 2290, get best_k: 4.249770466402803 best_b: -4.555928853754522, and the loss is: 5.2214752219188725\n",
      "When time is : 2291, get best_k: 4.249777262845491 best_b: -4.555968379446221, and the loss is: 5.221473613446933\n",
      "When time is : 2292, get best_k: 4.249784059288179 best_b: -4.55600790513792, and the loss is: 5.221472004974993\n",
      "When time is : 2293, get best_k: 4.249790855730867 best_b: -4.5560474308296195, and the loss is: 5.22147039650306\n",
      "When time is : 2294, get best_k: 4.249797652173554 best_b: -4.556086956521319, and the loss is: 5.221468788031121\n",
      "When time is : 2295, get best_k: 4.249804448616242 best_b: -4.556126482213018, and the loss is: 5.221467179559185\n",
      "When time is : 2296, get best_k: 4.24981124505893 best_b: -4.556166007904717, and the loss is: 5.221465571087253\n",
      "When time is : 2297, get best_k: 4.249818041501618 best_b: -4.556205533596416, and the loss is: 5.221463962615311\n",
      "When time is : 2298, get best_k: 4.249824837944305 best_b: -4.556245059288115, and the loss is: 5.221462354143368\n",
      "When time is : 2299, get best_k: 4.249831634386993 best_b: -4.556284584979815, and the loss is: 5.221460745671434\n",
      "When time is : 2300, get best_k: 4.249838430829681 best_b: -4.556324110671514, and the loss is: 5.2214591371994965\n",
      "When time is : 2301, get best_k: 4.249845227272369 best_b: -4.556363636363213, and the loss is: 5.221457528727566\n",
      "When time is : 2302, get best_k: 4.249852023715056 best_b: -4.556403162054912, and the loss is: 5.221455920255627\n",
      "When time is : 2303, get best_k: 4.249858820157744 best_b: -4.556442687746611, and the loss is: 5.221454311783682\n",
      "When time is : 2304, get best_k: 4.249865616600432 best_b: -4.5564822134383105, and the loss is: 5.221452703311749\n",
      "When time is : 2305, get best_k: 4.24987241304312 best_b: -4.55652173913001, and the loss is: 5.221451094839807\n",
      "When time is : 2306, get best_k: 4.249879209485807 best_b: -4.556561264821709, and the loss is: 5.221449486367876\n",
      "When time is : 2307, get best_k: 4.249886005928495 best_b: -4.556600790513408, and the loss is: 5.221447877895939\n",
      "When time is : 2308, get best_k: 4.249892802371183 best_b: -4.556640316205107, and the loss is: 5.221446269424002\n",
      "When time is : 2309, get best_k: 4.249899598813871 best_b: -4.556679841896806, and the loss is: 5.22144466095206\n",
      "When time is : 2310, get best_k: 4.249906395256558 best_b: -4.556719367588506, and the loss is: 5.221443052480124\n",
      "When time is : 2311, get best_k: 4.249913191699246 best_b: -4.556758893280205, and the loss is: 5.221441444008187\n",
      "When time is : 2312, get best_k: 4.249919988141934 best_b: -4.556798418971904, and the loss is: 5.221439835536244\n",
      "When time is : 2313, get best_k: 4.249926784584622 best_b: -4.556837944663603, and the loss is: 5.221438227064316\n",
      "When time is : 2314, get best_k: 4.249933581027309 best_b: -4.556877470355302, and the loss is: 5.221436618592371\n",
      "When time is : 2315, get best_k: 4.249940377469997 best_b: -4.5569169960470015, and the loss is: 5.221435010120436\n",
      "When time is : 2316, get best_k: 4.249947173912685 best_b: -4.556956521738701, and the loss is: 5.221433401648501\n",
      "When time is : 2317, get best_k: 4.249953970355373 best_b: -4.5569960474304, and the loss is: 5.2214317931765635\n",
      "When time is : 2318, get best_k: 4.24996076679806 best_b: -4.557035573122099, and the loss is: 5.221430184704624\n",
      "When time is : 2319, get best_k: 4.249967563240748 best_b: -4.557075098813798, and the loss is: 5.221428576232686\n",
      "When time is : 2320, get best_k: 4.249974359683436 best_b: -4.557114624505497, and the loss is: 5.221426967760748\n",
      "When time is : 2321, get best_k: 4.249981156126124 best_b: -4.557154150197197, and the loss is: 5.221425359288816\n",
      "When time is : 2322, get best_k: 4.249987952568811 best_b: -4.557193675888896, and the loss is: 5.2214237508168715\n",
      "When time is : 2323, get best_k: 4.249994749011499 best_b: -4.557233201580595, and the loss is: 5.221422142344937\n",
      "When time is : 2324, get best_k: 4.250001545454187 best_b: -4.557272727272294, and the loss is: 5.221420533872993\n",
      "When time is : 2325, get best_k: 4.250008341896875 best_b: -4.557312252963993, and the loss is: 5.2214189254010615\n",
      "When time is : 2326, get best_k: 4.250015138339562 best_b: -4.5573517786556925, and the loss is: 5.2214173169291245\n",
      "When time is : 2327, get best_k: 4.25002193478225 best_b: -4.557391304347392, and the loss is: 5.221415708457182\n",
      "When time is : 2328, get best_k: 4.250028731224938 best_b: -4.557430830039091, and the loss is: 5.221414099985244\n",
      "When time is : 2329, get best_k: 4.250035527667626 best_b: -4.55747035573079, and the loss is: 5.22141249151331\n",
      "When time is : 2330, get best_k: 4.250042324110313 best_b: -4.557509881422489, and the loss is: 5.221410883041372\n",
      "When time is : 2331, get best_k: 4.250049120553001 best_b: -4.557549407114188, and the loss is: 5.221409274569439\n",
      "When time is : 2332, get best_k: 4.250055916995689 best_b: -4.557588932805888, and the loss is: 5.221407666097503\n",
      "When time is : 2333, get best_k: 4.250062713438377 best_b: -4.557628458497587, and the loss is: 5.221406058188926\n",
      "When time is : 2334, get best_k: 4.250045648220985 best_b: -4.557671936758457, and the loss is: 5.221404455099997\n",
      "When time is : 2335, get best_k: 4.250052444663673 best_b: -4.557711462450156, and the loss is: 5.2214028466280595\n",
      "When time is : 2336, get best_k: 4.250059241106361 best_b: -4.557750988141855, and the loss is: 5.221401238156124\n",
      "When time is : 2337, get best_k: 4.250066037549049 best_b: -4.557790513833554, and the loss is: 5.2213996296841865\n",
      "When time is : 2338, get best_k: 4.250072833991736 best_b: -4.557830039525253, and the loss is: 5.221398021212247\n",
      "When time is : 2339, get best_k: 4.250079630434424 best_b: -4.5578695652169525, and the loss is: 5.221396412740307\n",
      "When time is : 2340, get best_k: 4.250086426877112 best_b: -4.557909090908652, and the loss is: 5.221394804268371\n",
      "When time is : 2341, get best_k: 4.2500932233198 best_b: -4.557948616600351, and the loss is: 5.221393195796437\n",
      "When time is : 2342, get best_k: 4.250100019762487 best_b: -4.55798814229205, and the loss is: 5.221391587324499\n",
      "When time is : 2343, get best_k: 4.250106816205175 best_b: -4.558027667983749, and the loss is: 5.221389978852563\n",
      "When time is : 2344, get best_k: 4.250113612647863 best_b: -4.558067193675448, and the loss is: 5.221388370380622\n",
      "When time is : 2345, get best_k: 4.250120409090551 best_b: -4.558106719367148, and the loss is: 5.221386761908682\n",
      "When time is : 2346, get best_k: 4.250127205533238 best_b: -4.558146245058847, and the loss is: 5.221385153436744\n",
      "When time is : 2347, get best_k: 4.250134001975926 best_b: -4.558185770750546, and the loss is: 5.221383544964813\n",
      "When time is : 2348, get best_k: 4.250140798418614 best_b: -4.558225296442245, and the loss is: 5.221381936492873\n",
      "When time is : 2349, get best_k: 4.250147594861302 best_b: -4.558264822133944, and the loss is: 5.221380328020935\n",
      "When time is : 2350, get best_k: 4.250154391303989 best_b: -4.5583043478256435, and the loss is: 5.221378719548995\n",
      "When time is : 2351, get best_k: 4.250161187746677 best_b: -4.558343873517343, and the loss is: 5.221377111077059\n",
      "When time is : 2352, get best_k: 4.250167984189365 best_b: -4.558383399209042, and the loss is: 5.2213755026051265\n",
      "When time is : 2353, get best_k: 4.250174780632053 best_b: -4.558422924900741, and the loss is: 5.221373894133186\n",
      "When time is : 2354, get best_k: 4.25018157707474 best_b: -4.55846245059244, and the loss is: 5.2213722856612454\n",
      "When time is : 2355, get best_k: 4.250188373517428 best_b: -4.5585019762841394, and the loss is: 5.221370677189308\n",
      "When time is : 2356, get best_k: 4.250195169960116 best_b: -4.558541501975839, and the loss is: 5.2213690687173715\n",
      "When time is : 2357, get best_k: 4.250201966402804 best_b: -4.558581027667538, and the loss is: 5.221367460245434\n",
      "When time is : 2358, get best_k: 4.250208762845491 best_b: -4.558620553359237, and the loss is: 5.2213658517734975\n",
      "When time is : 2359, get best_k: 4.250215559288179 best_b: -4.558660079050936, and the loss is: 5.22136424330156\n",
      "When time is : 2360, get best_k: 4.250222355730867 best_b: -4.558699604742635, and the loss is: 5.221362634829616\n",
      "When time is : 2361, get best_k: 4.250229152173555 best_b: -4.5587391304343345, and the loss is: 5.221361026357685\n",
      "When time is : 2362, get best_k: 4.250235948616242 best_b: -4.558778656126034, and the loss is: 5.221359417885745\n",
      "When time is : 2363, get best_k: 4.25024274505893 best_b: -4.558818181817733, and the loss is: 5.22135780941381\n",
      "When time is : 2364, get best_k: 4.250249541501618 best_b: -4.558857707509432, and the loss is: 5.221356200941879\n",
      "When time is : 2365, get best_k: 4.250256337944306 best_b: -4.558897233201131, and the loss is: 5.22135459246993\n",
      "When time is : 2366, get best_k: 4.250263134386993 best_b: -4.5589367588928305, and the loss is: 5.2213529839979955\n",
      "When time is : 2367, get best_k: 4.250269930829681 best_b: -4.55897628458453, and the loss is: 5.221351375526062\n",
      "When time is : 2368, get best_k: 4.250276727272369 best_b: -4.559015810276229, and the loss is: 5.221349767054123\n",
      "When time is : 2369, get best_k: 4.250283523715057 best_b: -4.559055335967928, and the loss is: 5.221348158582186\n",
      "When time is : 2370, get best_k: 4.250290320157744 best_b: -4.559094861659627, and the loss is: 5.221346550110247\n",
      "When time is : 2371, get best_k: 4.250297116600432 best_b: -4.559134387351326, and the loss is: 5.221344941638302\n",
      "When time is : 2372, get best_k: 4.25030391304312 best_b: -4.5591739130430255, and the loss is: 5.221343333166379\n",
      "When time is : 2373, get best_k: 4.250310709485808 best_b: -4.559213438734725, and the loss is: 5.221341724694441\n",
      "When time is : 2374, get best_k: 4.250317505928495 best_b: -4.559252964426424, and the loss is: 5.2213401162225015\n",
      "When time is : 2375, get best_k: 4.250324302371183 best_b: -4.559292490118123, and the loss is: 5.221338507750559\n",
      "When time is : 2376, get best_k: 4.250331098813871 best_b: -4.559332015809822, and the loss is: 5.221336899278619\n",
      "When time is : 2377, get best_k: 4.250337895256559 best_b: -4.5593715415015215, and the loss is: 5.221335290806688\n",
      "When time is : 2378, get best_k: 4.2503446916992464 best_b: -4.559411067193221, and the loss is: 5.221333682334748\n",
      "When time is : 2379, get best_k: 4.250351488141934 best_b: -4.55945059288492, and the loss is: 5.221332073862815\n",
      "When time is : 2380, get best_k: 4.250358284584622 best_b: -4.559490118576619, and the loss is: 5.221330465390865\n",
      "When time is : 2381, get best_k: 4.25036508102731 best_b: -4.559529644268318, and the loss is: 5.221328856918932\n",
      "When time is : 2382, get best_k: 4.2503718774699975 best_b: -4.559569169960017, and the loss is: 5.221327248447003\n",
      "When time is : 2383, get best_k: 4.250378673912685 best_b: -4.559608695651717, and the loss is: 5.221325639975063\n",
      "When time is : 2384, get best_k: 4.250385470355373 best_b: -4.559648221343416, and the loss is: 5.221324031503122\n",
      "When time is : 2385, get best_k: 4.250392266798061 best_b: -4.559687747035115, and the loss is: 5.221322423031182\n",
      "When time is : 2386, get best_k: 4.2503990632407485 best_b: -4.559727272726814, and the loss is: 5.221320814559246\n",
      "When time is : 2387, get best_k: 4.250405859683436 best_b: -4.559766798418513, and the loss is: 5.221319206087302\n",
      "When time is : 2388, get best_k: 4.250412656126124 best_b: -4.5598063241102125, and the loss is: 5.221317597615374\n",
      "When time is : 2389, get best_k: 4.250419452568812 best_b: -4.559845849801912, and the loss is: 5.221315989143436\n",
      "When time is : 2390, get best_k: 4.2504262490114995 best_b: -4.559885375493611, and the loss is: 5.221314380671497\n",
      "When time is : 2391, get best_k: 4.250433045454187 best_b: -4.55992490118531, and the loss is: 5.221312772199553\n",
      "When time is : 2392, get best_k: 4.250439841896875 best_b: -4.559964426877009, and the loss is: 5.221311163727622\n",
      "When time is : 2393, get best_k: 4.250446638339563 best_b: -4.560003952568708, and the loss is: 5.221309555255683\n",
      "When time is : 2394, get best_k: 4.2504534347822505 best_b: -4.560043478260408, and the loss is: 5.2213079467837495\n",
      "When time is : 2395, get best_k: 4.250460231224938 best_b: -4.560083003952107, and the loss is: 5.221306338311814\n",
      "When time is : 2396, get best_k: 4.250467027667626 best_b: -4.560122529643806, and the loss is: 5.221304729839872\n",
      "When time is : 2397, get best_k: 4.250473824110314 best_b: -4.560162055335505, and the loss is: 5.221303121367931\n",
      "When time is : 2398, get best_k: 4.2504806205530015 best_b: -4.560201581027204, and the loss is: 5.221301512895995\n",
      "When time is : 2399, get best_k: 4.250487416995689 best_b: -4.5602411067189035, and the loss is: 5.22129990442406\n",
      "When time is : 2400, get best_k: 4.250494213438377 best_b: -4.560280632410603, and the loss is: 5.221298295952123\n",
      "When time is : 2401, get best_k: 4.250501009881065 best_b: -4.560320158102302, and the loss is: 5.221296687480184\n",
      "When time is : 2402, get best_k: 4.2505078063237525 best_b: -4.560359683794001, and the loss is: 5.22129507900825\n",
      "When time is : 2403, get best_k: 4.25051460276644 best_b: -4.5603992094857, and the loss is: 5.221293470536309\n",
      "When time is : 2404, get best_k: 4.250521399209128 best_b: -4.560438735177399, and the loss is: 5.221291862064373\n",
      "When time is : 2405, get best_k: 4.250528195651816 best_b: -4.560478260869099, and the loss is: 5.221290253592432\n",
      "When time is : 2406, get best_k: 4.2505349920945035 best_b: -4.560517786560798, and the loss is: 5.221288645120499\n",
      "When time is : 2407, get best_k: 4.250541788537191 best_b: -4.560557312252497, and the loss is: 5.22128703664856\n",
      "When time is : 2408, get best_k: 4.250548584979879 best_b: -4.560596837944196, and the loss is: 5.221285428176617\n",
      "When time is : 2409, get best_k: 4.250555381422567 best_b: -4.560636363635895, and the loss is: 5.221283819704685\n",
      "When time is : 2410, get best_k: 4.2505621778652545 best_b: -4.5606758893275945, and the loss is: 5.221282211232748\n",
      "When time is : 2411, get best_k: 4.250568974307942 best_b: -4.560715415019294, and the loss is: 5.221280602760811\n",
      "When time is : 2412, get best_k: 4.25057577075063 best_b: -4.560754940710993, and the loss is: 5.221278994288874\n",
      "When time is : 2413, get best_k: 4.250582567193318 best_b: -4.560794466402692, and the loss is: 5.221277385816933\n",
      "When time is : 2414, get best_k: 4.2505893636360055 best_b: -4.560833992094391, and the loss is: 5.221275777344996\n",
      "When time is : 2415, get best_k: 4.250596160078693 best_b: -4.56087351778609, and the loss is: 5.221274168873057\n",
      "When time is : 2416, get best_k: 4.250602956521381 best_b: -4.56091304347779, and the loss is: 5.221272560401119\n",
      "When time is : 2417, get best_k: 4.250609752964069 best_b: -4.560952569169489, and the loss is: 5.221270951929182\n",
      "When time is : 2418, get best_k: 4.2506165494067565 best_b: -4.560992094861188, and the loss is: 5.221269343457246\n",
      "When time is : 2419, get best_k: 4.250623345849444 best_b: -4.561031620552887, and the loss is: 5.221267734985313\n",
      "When time is : 2420, get best_k: 4.250630142292132 best_b: -4.561071146244586, and the loss is: 5.221266126513372\n",
      "When time is : 2421, get best_k: 4.25063693873482 best_b: -4.5611106719362855, and the loss is: 5.2212645180414325\n",
      "When time is : 2422, get best_k: 4.2506437351775075 best_b: -4.561150197627985, and the loss is: 5.22126290956949\n",
      "When time is : 2423, get best_k: 4.250650531620195 best_b: -4.561189723319684, and the loss is: 5.221261301097552\n",
      "When time is : 2424, get best_k: 4.250657328062883 best_b: -4.561229249011383, and the loss is: 5.2212596926256225\n",
      "When time is : 2425, get best_k: 4.250664124505571 best_b: -4.561268774703082, and the loss is: 5.221258084153688\n",
      "When time is : 2426, get best_k: 4.2506709209482585 best_b: -4.561308300394781, and the loss is: 5.221256475681741\n",
      "When time is : 2427, get best_k: 4.250677717390946 best_b: -4.561347826086481, and the loss is: 5.221254867209811\n",
      "When time is : 2428, get best_k: 4.250684513833634 best_b: -4.56138735177818, and the loss is: 5.2212532587378675\n",
      "When time is : 2429, get best_k: 4.250691310276322 best_b: -4.561426877469879, and the loss is: 5.221251650265935\n",
      "When time is : 2430, get best_k: 4.2506981067190095 best_b: -4.561466403161578, and the loss is: 5.2212500417939935\n",
      "When time is : 2431, get best_k: 4.250704903161697 best_b: -4.561505928853277, and the loss is: 5.221248433322058\n",
      "When time is : 2432, get best_k: 4.250711699604385 best_b: -4.5615454545449765, and the loss is: 5.221246829102949\n",
      "When time is : 2433, get best_k: 4.250694634386994 best_b: -4.561588932805846, and the loss is: 5.221245222324556\n",
      "When time is : 2434, get best_k: 4.2507014308296815 best_b: -4.5616284584975455, and the loss is: 5.22124361385262\n",
      "When time is : 2435, get best_k: 4.250708227272369 best_b: -4.561667984189245, and the loss is: 5.22124200538068\n",
      "When time is : 2436, get best_k: 4.250715023715057 best_b: -4.561707509880944, and the loss is: 5.221240396908745\n",
      "When time is : 2437, get best_k: 4.250721820157745 best_b: -4.561747035572643, and the loss is: 5.221238788436803\n",
      "When time is : 2438, get best_k: 4.2507286166004326 best_b: -4.561786561264342, and the loss is: 5.221237179964869\n",
      "When time is : 2439, get best_k: 4.25073541304312 best_b: -4.561826086956041, and the loss is: 5.221235571492934\n",
      "When time is : 2440, get best_k: 4.250742209485808 best_b: -4.561865612647741, and the loss is: 5.221233963020994\n",
      "When time is : 2441, get best_k: 4.250749005928496 best_b: -4.56190513833944, and the loss is: 5.221232354549058\n",
      "When time is : 2442, get best_k: 4.250755802371184 best_b: -4.561944664031139, and the loss is: 5.2212307460771195\n",
      "When time is : 2443, get best_k: 4.250762598813871 best_b: -4.561984189722838, and the loss is: 5.221229137605179\n",
      "When time is : 2444, get best_k: 4.250769395256559 best_b: -4.562023715414537, and the loss is: 5.221227529133244\n",
      "When time is : 2445, get best_k: 4.250776191699247 best_b: -4.5620632411062365, and the loss is: 5.221225920661305\n",
      "When time is : 2446, get best_k: 4.250782988141935 best_b: -4.562102766797936, and the loss is: 5.221224312189372\n",
      "When time is : 2447, get best_k: 4.250789784584622 best_b: -4.562142292489635, and the loss is: 5.22122270371744\n",
      "When time is : 2448, get best_k: 4.25079658102731 best_b: -4.562181818181334, and the loss is: 5.221221095245497\n",
      "When time is : 2449, get best_k: 4.250803377469998 best_b: -4.562221343873033, and the loss is: 5.221219486773553\n",
      "When time is : 2450, get best_k: 4.250810173912686 best_b: -4.562260869564732, and the loss is: 5.221217878301616\n",
      "When time is : 2451, get best_k: 4.250816970355373 best_b: -4.562300395256432, and the loss is: 5.221216269829684\n",
      "When time is : 2452, get best_k: 4.250823766798061 best_b: -4.562339920948131, and the loss is: 5.221214661357746\n",
      "When time is : 2453, get best_k: 4.250830563240749 best_b: -4.56237944663983, and the loss is: 5.2212130528858065\n",
      "When time is : 2454, get best_k: 4.250837359683437 best_b: -4.562418972331529, and the loss is: 5.221211444413871\n",
      "When time is : 2455, get best_k: 4.250844156126124 best_b: -4.562458498023228, and the loss is: 5.221209835941931\n",
      "When time is : 2456, get best_k: 4.250850952568812 best_b: -4.5624980237149275, and the loss is: 5.2212082274699965\n",
      "When time is : 2457, get best_k: 4.2508577490115 best_b: -4.562537549406627, and the loss is: 5.221206618998061\n",
      "When time is : 2458, get best_k: 4.250864545454188 best_b: -4.562577075098326, and the loss is: 5.2212050105261225\n",
      "When time is : 2459, get best_k: 4.250871341896875 best_b: -4.562616600790025, and the loss is: 5.2212034020541775\n",
      "When time is : 2460, get best_k: 4.250878138339563 best_b: -4.562656126481724, and the loss is: 5.221201793582245\n",
      "When time is : 2461, get best_k: 4.250884934782251 best_b: -4.562695652173423, and the loss is: 5.221200185110308\n",
      "When time is : 2462, get best_k: 4.250891731224939 best_b: -4.562735177865123, and the loss is: 5.221198576638372\n",
      "When time is : 2463, get best_k: 4.250898527667626 best_b: -4.562774703556822, and the loss is: 5.22119696816643\n",
      "When time is : 2464, get best_k: 4.250905324110314 best_b: -4.562814229248521, and the loss is: 5.221195359694492\n",
      "When time is : 2465, get best_k: 4.250912120553002 best_b: -4.56285375494022, and the loss is: 5.22119375122256\n",
      "When time is : 2466, get best_k: 4.25091891699569 best_b: -4.562893280631919, and the loss is: 5.22119214275062\n",
      "When time is : 2467, get best_k: 4.250925713438377 best_b: -4.5629328063236185, and the loss is: 5.22119053427868\n",
      "When time is : 2468, get best_k: 4.250932509881065 best_b: -4.562972332015318, and the loss is: 5.221188925806744\n",
      "When time is : 2469, get best_k: 4.250939306323753 best_b: -4.563011857707017, and the loss is: 5.221187317334801\n",
      "When time is : 2470, get best_k: 4.250946102766441 best_b: -4.563051383398716, and the loss is: 5.2211857088628735\n",
      "When time is : 2471, get best_k: 4.250952899209128 best_b: -4.563090909090415, and the loss is: 5.221184100390935\n",
      "When time is : 2472, get best_k: 4.250959695651816 best_b: -4.563130434782114, and the loss is: 5.221182491919002\n",
      "When time is : 2473, get best_k: 4.250966492094504 best_b: -4.563169960473814, and the loss is: 5.221180883447058\n",
      "When time is : 2474, get best_k: 4.250973288537192 best_b: -4.563209486165513, and the loss is: 5.221179274975121\n",
      "When time is : 2475, get best_k: 4.250980084979879 best_b: -4.563249011857212, and the loss is: 5.221177666503182\n",
      "When time is : 2476, get best_k: 4.250986881422567 best_b: -4.563288537548911, and the loss is: 5.221176058031248\n",
      "When time is : 2477, get best_k: 4.250993677865255 best_b: -4.56332806324061, and the loss is: 5.2211744495593075\n",
      "When time is : 2478, get best_k: 4.251000474307943 best_b: -4.5633675889323095, and the loss is: 5.22117284108737\n",
      "When time is : 2479, get best_k: 4.25100727075063 best_b: -4.563407114624009, and the loss is: 5.221171232615436\n",
      "When time is : 2480, get best_k: 4.251014067193318 best_b: -4.563446640315708, and the loss is: 5.221169624143492\n",
      "When time is : 2481, get best_k: 4.251020863636006 best_b: -4.563486166007407, and the loss is: 5.221168015671559\n",
      "When time is : 2482, get best_k: 4.251027660078694 best_b: -4.563525691699106, and the loss is: 5.221166407199618\n",
      "When time is : 2483, get best_k: 4.251034456521381 best_b: -4.5635652173908055, and the loss is: 5.221164798727683\n",
      "When time is : 2484, get best_k: 4.251041252964069 best_b: -4.563604743082505, and the loss is: 5.2211631902557425\n",
      "When time is : 2485, get best_k: 4.251048049406757 best_b: -4.563644268774204, and the loss is: 5.221161581783807\n",
      "When time is : 2486, get best_k: 4.251054845849445 best_b: -4.563683794465903, and the loss is: 5.22115997331186\n",
      "When time is : 2487, get best_k: 4.251061642292132 best_b: -4.563723320157602, and the loss is: 5.22115836483993\n",
      "When time is : 2488, get best_k: 4.25106843873482 best_b: -4.563762845849301, and the loss is: 5.221156756367995\n",
      "When time is : 2489, get best_k: 4.251075235177508 best_b: -4.5638023715410005, and the loss is: 5.22115514789606\n",
      "When time is : 2490, get best_k: 4.251082031620196 best_b: -4.5638418972327, and the loss is: 5.221153539424114\n",
      "When time is : 2491, get best_k: 4.251088828062883 best_b: -4.563881422924399, and the loss is: 5.221151930952182\n",
      "When time is : 2492, get best_k: 4.251095624505571 best_b: -4.563920948616098, and the loss is: 5.221150322480247\n",
      "When time is : 2493, get best_k: 4.251102420948259 best_b: -4.563960474307797, and the loss is: 5.2211487140083035\n",
      "When time is : 2494, get best_k: 4.251109217390947 best_b: -4.5639999999994965, and the loss is: 5.22114710553637\n",
      "When time is : 2495, get best_k: 4.251116013833634 best_b: -4.564039525691196, and the loss is: 5.2211454970644295\n",
      "When time is : 2496, get best_k: 4.251122810276322 best_b: -4.564079051382895, and the loss is: 5.221143888592495\n",
      "When time is : 2497, get best_k: 4.25112960671901 best_b: -4.564118577074594, and the loss is: 5.221142280120556\n",
      "When time is : 2498, get best_k: 4.251136403161698 best_b: -4.564158102766293, and the loss is: 5.221140671648617\n",
      "When time is : 2499, get best_k: 4.251143199604385 best_b: -4.564197628457992, and the loss is: 5.221139063176681\n",
      "When time is : 2500, get best_k: 4.251149996047073 best_b: -4.5642371541496916, and the loss is: 5.221137454704742\n",
      "When time is : 2501, get best_k: 4.251156792489761 best_b: -4.564276679841391, and the loss is: 5.221135846232805\n",
      "When time is : 2502, get best_k: 4.251163588932449 best_b: -4.56431620553309, and the loss is: 5.221134237760872\n",
      "When time is : 2503, get best_k: 4.251170385375136 best_b: -4.564355731224789, and the loss is: 5.22113262928893\n",
      "When time is : 2504, get best_k: 4.251177181817824 best_b: -4.564395256916488, and the loss is: 5.221131020816995\n",
      "When time is : 2505, get best_k: 4.251183978260512 best_b: -4.5644347826081875, and the loss is: 5.221129412345062\n",
      "When time is : 2506, get best_k: 4.2511907747032 best_b: -4.564474308299887, and the loss is: 5.221127803873125\n",
      "When time is : 2507, get best_k: 4.251197571145887 best_b: -4.564513833991586, and the loss is: 5.22112619540118\n",
      "When time is : 2508, get best_k: 4.251204367588575 best_b: -4.564553359683285, and the loss is: 5.221124586929248\n",
      "When time is : 2509, get best_k: 4.251211164031263 best_b: -4.564592885374984, and the loss is: 5.221122978457307\n",
      "When time is : 2510, get best_k: 4.251217960473951 best_b: -4.564632411066683, and the loss is: 5.22112136998537\n",
      "When time is : 2511, get best_k: 4.251224756916638 best_b: -4.564671936758383, and the loss is: 5.22111976151343\n",
      "When time is : 2512, get best_k: 4.251231553359326 best_b: -4.564711462450082, and the loss is: 5.221118153041497\n",
      "When time is : 2513, get best_k: 4.251238349802014 best_b: -4.564750988141781, and the loss is: 5.221116544569555\n",
      "When time is : 2514, get best_k: 4.251245146244702 best_b: -4.56479051383348, and the loss is: 5.22111493609762\n",
      "When time is : 2515, get best_k: 4.251251942687389 best_b: -4.564830039525179, and the loss is: 5.22111332762568\n",
      "When time is : 2516, get best_k: 4.251258739130077 best_b: -4.5648695652168785, and the loss is: 5.221111719153745\n",
      "When time is : 2517, get best_k: 4.251265535572765 best_b: -4.564909090908578, and the loss is: 5.221110110681805\n",
      "When time is : 2518, get best_k: 4.251272332015453 best_b: -4.564948616600277, and the loss is: 5.221108502209865\n",
      "When time is : 2519, get best_k: 4.25127912845814 best_b: -4.564988142291976, and the loss is: 5.221106893737927\n",
      "When time is : 2520, get best_k: 4.251285924900828 best_b: -4.565027667983675, and the loss is: 5.221105285265994\n",
      "When time is : 2521, get best_k: 4.251292721343516 best_b: -4.565067193675374, and the loss is: 5.2211036767940575\n",
      "When time is : 2522, get best_k: 4.251299517786204 best_b: -4.565106719367074, and the loss is: 5.221102068322117\n",
      "When time is : 2523, get best_k: 4.251306314228891 best_b: -4.565146245058773, and the loss is: 5.221100459850178\n",
      "When time is : 2524, get best_k: 4.251313110671579 best_b: -4.565185770750472, and the loss is: 5.221098851378241\n",
      "When time is : 2525, get best_k: 4.251319907114267 best_b: -4.565225296442171, and the loss is: 5.221097242906303\n",
      "When time is : 2526, get best_k: 4.251326703556955 best_b: -4.56526482213387, and the loss is: 5.221095634434369\n",
      "When time is : 2527, get best_k: 4.251333499999642 best_b: -4.5653043478255695, and the loss is: 5.221094025962432\n",
      "When time is : 2528, get best_k: 4.25134029644233 best_b: -4.565343873517269, and the loss is: 5.221092417490496\n",
      "When time is : 2529, get best_k: 4.251347092885018 best_b: -4.565383399208968, and the loss is: 5.221090809018553\n",
      "When time is : 2530, get best_k: 4.251353889327706 best_b: -4.565422924900667, and the loss is: 5.221089202542551\n",
      "When time is : 2531, get best_k: 4.251336824110314 best_b: -4.565466403161537, and the loss is: 5.221087598021057\n",
      "When time is : 2532, get best_k: 4.251343620553002 best_b: -4.565505928853236, and the loss is: 5.2210859895491195\n",
      "When time is : 2533, get best_k: 4.25135041699569 best_b: -4.565545454544935, and the loss is: 5.221084381077179\n",
      "When time is : 2534, get best_k: 4.251357213438378 best_b: -4.565584980236634, and the loss is: 5.221082772605241\n",
      "When time is : 2535, get best_k: 4.251364009881065 best_b: -4.565624505928334, and the loss is: 5.221081164133309\n",
      "When time is : 2536, get best_k: 4.251370806323753 best_b: -4.565664031620033, and the loss is: 5.2210795556613725\n",
      "When time is : 2537, get best_k: 4.251377602766441 best_b: -4.565703557311732, and the loss is: 5.221077947189432\n",
      "When time is : 2538, get best_k: 4.251384399209129 best_b: -4.565743083003431, and the loss is: 5.221076338717494\n",
      "When time is : 2539, get best_k: 4.2513911956518164 best_b: -4.56578260869513, and the loss is: 5.221074730245558\n",
      "When time is : 2540, get best_k: 4.251397992094504 best_b: -4.5658221343868295, and the loss is: 5.221073121773619\n",
      "When time is : 2541, get best_k: 4.251404788537192 best_b: -4.565861660078529, and the loss is: 5.22107151330168\n",
      "When time is : 2542, get best_k: 4.25141158497988 best_b: -4.565901185770228, and the loss is: 5.221069904829743\n",
      "When time is : 2543, get best_k: 4.2514183814225674 best_b: -4.565940711461927, and the loss is: 5.221068296357808\n",
      "When time is : 2544, get best_k: 4.251425177865255 best_b: -4.565980237153626, and the loss is: 5.221066687885868\n",
      "When time is : 2545, get best_k: 4.251431974307943 best_b: -4.566019762845325, and the loss is: 5.221065079413931\n",
      "When time is : 2546, get best_k: 4.251438770750631 best_b: -4.566059288537025, and the loss is: 5.221063470941994\n",
      "When time is : 2547, get best_k: 4.2514455671933185 best_b: -4.566098814228724, and the loss is: 5.221061862470052\n",
      "When time is : 2548, get best_k: 4.251452363636006 best_b: -4.566138339920423, and the loss is: 5.221060253998124\n",
      "When time is : 2549, get best_k: 4.251459160078694 best_b: -4.566177865612122, and the loss is: 5.221058645526178\n",
      "When time is : 2550, get best_k: 4.251465956521382 best_b: -4.566217391303821, and the loss is: 5.221057037054244\n",
      "When time is : 2551, get best_k: 4.2514727529640695 best_b: -4.5662569169955205, and the loss is: 5.221055428582309\n",
      "When time is : 2552, get best_k: 4.251479549406757 best_b: -4.56629644268722, and the loss is: 5.221053820110358\n",
      "When time is : 2553, get best_k: 4.251486345849445 best_b: -4.566335968378919, and the loss is: 5.221052211638432\n",
      "When time is : 2554, get best_k: 4.251493142292133 best_b: -4.566375494070618, and the loss is: 5.221050603166488\n",
      "When time is : 2555, get best_k: 4.2514999387348205 best_b: -4.566415019762317, and the loss is: 5.221048994694551\n",
      "When time is : 2556, get best_k: 4.251506735177508 best_b: -4.566454545454016, and the loss is: 5.221047386222618\n",
      "When time is : 2557, get best_k: 4.251513531620196 best_b: -4.566494071145716, and the loss is: 5.22104577775068\n",
      "When time is : 2558, get best_k: 4.251520328062884 best_b: -4.566533596837415, and the loss is: 5.221044169278741\n",
      "When time is : 2559, get best_k: 4.2515271245055715 best_b: -4.566573122529114, and the loss is: 5.221042560806797\n",
      "When time is : 2560, get best_k: 4.251533920948259 best_b: -4.566612648220813, and the loss is: 5.221040952334866\n",
      "When time is : 2561, get best_k: 4.251540717390947 best_b: -4.566652173912512, and the loss is: 5.221039343862929\n",
      "When time is : 2562, get best_k: 4.251547513833635 best_b: -4.5666916996042115, and the loss is: 5.221037735390993\n",
      "When time is : 2563, get best_k: 4.2515543102763225 best_b: -4.566731225295911, and the loss is: 5.221036126919056\n",
      "When time is : 2564, get best_k: 4.25156110671901 best_b: -4.56677075098761, and the loss is: 5.221034518447117\n",
      "When time is : 2565, get best_k: 4.251567903161698 best_b: -4.566810276679309, and the loss is: 5.221032909975178\n",
      "When time is : 2566, get best_k: 4.251574699604386 best_b: -4.566849802371008, and the loss is: 5.221031301503245\n",
      "When time is : 2567, get best_k: 4.2515814960470735 best_b: -4.566889328062707, and the loss is: 5.221029693031309\n",
      "When time is : 2568, get best_k: 4.251588292489761 best_b: -4.566928853754407, and the loss is: 5.221028084559364\n",
      "When time is : 2569, get best_k: 4.251595088932449 best_b: -4.566968379446106, and the loss is: 5.221026476087425\n",
      "When time is : 2570, get best_k: 4.251601885375137 best_b: -4.567007905137805, and the loss is: 5.221024867615491\n",
      "When time is : 2571, get best_k: 4.2516086818178245 best_b: -4.567047430829504, and the loss is: 5.221023259143556\n",
      "When time is : 2572, get best_k: 4.251615478260512 best_b: -4.567086956521203, and the loss is: 5.22102165067162\n",
      "When time is : 2573, get best_k: 4.2516222747032 best_b: -4.5671264822129025, and the loss is: 5.221020042199683\n",
      "When time is : 2574, get best_k: 4.251629071145888 best_b: -4.567166007904602, and the loss is: 5.221018433727738\n",
      "When time is : 2575, get best_k: 4.2516358675885755 best_b: -4.567205533596301, and the loss is: 5.221016825255801\n",
      "When time is : 2576, get best_k: 4.251642664031263 best_b: -4.567245059288, and the loss is: 5.221015216783868\n",
      "When time is : 2577, get best_k: 4.251649460473951 best_b: -4.567284584979699, and the loss is: 5.221013608311928\n",
      "When time is : 2578, get best_k: 4.251656256916639 best_b: -4.567324110671398, and the loss is: 5.221011999839995\n",
      "When time is : 2579, get best_k: 4.2516630533593265 best_b: -4.567363636363098, and the loss is: 5.221010391368047\n",
      "When time is : 2580, get best_k: 4.251669849802014 best_b: -4.567403162054797, and the loss is: 5.2210087828961145\n",
      "When time is : 2581, get best_k: 4.251676646244702 best_b: -4.567442687746496, and the loss is: 5.221007174424181\n",
      "When time is : 2582, get best_k: 4.25168344268739 best_b: -4.567482213438195, and the loss is: 5.221005565952241\n",
      "When time is : 2583, get best_k: 4.2516902391300775 best_b: -4.567521739129894, and the loss is: 5.221003957480308\n",
      "When time is : 2584, get best_k: 4.251697035572765 best_b: -4.5675612648215935, and the loss is: 5.221002349008369\n",
      "When time is : 2585, get best_k: 4.251703832015453 best_b: -4.567600790513293, and the loss is: 5.221000740536432\n",
      "When time is : 2586, get best_k: 4.251710628458141 best_b: -4.567640316204992, and the loss is: 5.22099913206449\n",
      "When time is : 2587, get best_k: 4.2517174249008285 best_b: -4.567679841896691, and the loss is: 5.220997523592554\n",
      "When time is : 2588, get best_k: 4.251724221343516 best_b: -4.56771936758839, and the loss is: 5.220995915120617\n",
      "When time is : 2589, get best_k: 4.251731017786204 best_b: -4.567758893280089, and the loss is: 5.2209943066486835\n",
      "When time is : 2590, get best_k: 4.251737814228892 best_b: -4.567798418971789, and the loss is: 5.220992698176741\n",
      "When time is : 2591, get best_k: 4.2517446106715795 best_b: -4.567837944663488, and the loss is: 5.220991089704803\n",
      "When time is : 2592, get best_k: 4.251751407114267 best_b: -4.567877470355187, and the loss is: 5.220989481232864\n",
      "When time is : 2593, get best_k: 4.251758203556955 best_b: -4.567916996046886, and the loss is: 5.220987872760935\n",
      "When time is : 2594, get best_k: 4.251764999999643 best_b: -4.567956521738585, and the loss is: 5.2209862642889915\n",
      "When time is : 2595, get best_k: 4.2517717964423305 best_b: -4.5679960474302845, and the loss is: 5.2209846558170545\n",
      "When time is : 2596, get best_k: 4.251778592885018 best_b: -4.568035573121984, and the loss is: 5.220983047345121\n",
      "When time is : 2597, get best_k: 4.251785389327706 best_b: -4.568075098813683, and the loss is: 5.220981438873175\n",
      "When time is : 2598, get best_k: 4.251792185770394 best_b: -4.568114624505382, and the loss is: 5.220979830401239\n",
      "When time is : 2599, get best_k: 4.2517989822130815 best_b: -4.568154150197081, and the loss is: 5.220978221929309\n",
      "When time is : 2600, get best_k: 4.251805778655769 best_b: -4.5681936758887804, and the loss is: 5.220976613457367\n",
      "When time is : 2601, get best_k: 4.251812575098457 best_b: -4.56823320158048, and the loss is: 5.220975004985422\n",
      "When time is : 2602, get best_k: 4.251819371541145 best_b: -4.568272727272179, and the loss is: 5.220973396513493\n",
      "When time is : 2603, get best_k: 4.2518261679838325 best_b: -4.568312252963878, and the loss is: 5.220971788041554\n",
      "When time is : 2604, get best_k: 4.25183296442652 best_b: -4.568351778655577, and the loss is: 5.22097017956962\n",
      "When time is : 2605, get best_k: 4.251839760869208 best_b: -4.568391304347276, and the loss is: 5.2209685710976785\n",
      "When time is : 2606, get best_k: 4.251846557311896 best_b: -4.5684308300389755, and the loss is: 5.220966962625743\n",
      "When time is : 2607, get best_k: 4.2518533537545835 best_b: -4.568470355730675, and the loss is: 5.220965354153805\n",
      "When time is : 2608, get best_k: 4.251860150197271 best_b: -4.568509881422374, and the loss is: 5.2209637456818685\n",
      "When time is : 2609, get best_k: 4.251866946639959 best_b: -4.568549407114073, and the loss is: 5.220962137209929\n",
      "When time is : 2610, get best_k: 4.251873743082647 best_b: -4.568588932805772, and the loss is: 5.220960528737989\n",
      "When time is : 2611, get best_k: 4.2518805395253345 best_b: -4.5686284584974715, and the loss is: 5.220958920266051\n",
      "When time is : 2612, get best_k: 4.251887335968022 best_b: -4.568667984189171, and the loss is: 5.2209573117941135\n",
      "When time is : 2613, get best_k: 4.25189413241071 best_b: -4.56870750988087, and the loss is: 5.220955703322182\n",
      "When time is : 2614, get best_k: 4.251900928853398 best_b: -4.568747035572569, and the loss is: 5.220954094850249\n",
      "When time is : 2615, get best_k: 4.2519077252960855 best_b: -4.568786561264268, and the loss is: 5.220952486378297\n",
      "When time is : 2616, get best_k: 4.251914521738773 best_b: -4.568826086955967, and the loss is: 5.220950877906366\n",
      "When time is : 2617, get best_k: 4.251921318181461 best_b: -4.5688656126476666, and the loss is: 5.220949269434431\n",
      "When time is : 2618, get best_k: 4.251928114624149 best_b: -4.568905138339366, and the loss is: 5.220947660962496\n",
      "When time is : 2619, get best_k: 4.2519349110668365 best_b: -4.568944664031065, and the loss is: 5.220946052490557\n",
      "When time is : 2620, get best_k: 4.251941707509524 best_b: -4.568984189722764, and the loss is: 5.220944444018621\n",
      "When time is : 2621, get best_k: 4.251948503952212 best_b: -4.569023715414463, and the loss is: 5.220942835546679\n",
      "When time is : 2622, get best_k: 4.2519553003949 best_b: -4.5690632411061625, and the loss is: 5.220941227074744\n",
      "When time is : 2623, get best_k: 4.2519620968375875 best_b: -4.569102766797862, and the loss is: 5.220939618602806\n",
      "When time is : 2624, get best_k: 4.251968893280275 best_b: -4.569142292489561, and the loss is: 5.220938010130862\n",
      "When time is : 2625, get best_k: 4.251975689722963 best_b: -4.56918181818126, and the loss is: 5.2209364016589355\n",
      "When time is : 2626, get best_k: 4.251982486165651 best_b: -4.569221343872959, and the loss is: 5.220934793186995\n",
      "When time is : 2627, get best_k: 4.2519892826083385 best_b: -4.569260869564658, and the loss is: 5.220933184715053\n",
      "When time is : 2628, get best_k: 4.251996079051026 best_b: -4.569300395256358, and the loss is: 5.220931576243119\n",
      "When time is : 2629, get best_k: 4.252002875493714 best_b: -4.569339920948057, and the loss is: 5.220929973456584\n",
      "When time is : 2630, get best_k: 4.251985810276323 best_b: -4.5693833992089266, and the loss is: 5.220928365245615\n",
      "When time is : 2631, get best_k: 4.251992606719011 best_b: -4.569422924900626, and the loss is: 5.220926756773675\n",
      "When time is : 2632, get best_k: 4.251999403161698 best_b: -4.569462450592325, and the loss is: 5.22092514830174\n",
      "When time is : 2633, get best_k: 4.252006199604386 best_b: -4.569501976284024, and the loss is: 5.220923539829802\n",
      "When time is : 2634, get best_k: 4.252012996047074 best_b: -4.569541501975723, and the loss is: 5.220921931357863\n",
      "When time is : 2635, get best_k: 4.252019792489762 best_b: -4.5695810276674225, and the loss is: 5.220920322885924\n",
      "When time is : 2636, get best_k: 4.252026588932449 best_b: -4.569620553359122, and the loss is: 5.2209187144139895\n",
      "When time is : 2637, get best_k: 4.252033385375137 best_b: -4.569660079050821, and the loss is: 5.220917105942053\n",
      "When time is : 2638, get best_k: 4.252040181817825 best_b: -4.56969960474252, and the loss is: 5.220915497470115\n",
      "When time is : 2639, get best_k: 4.252046978260513 best_b: -4.569739130434219, and the loss is: 5.220913888998177\n",
      "When time is : 2640, get best_k: 4.2520537747032 best_b: -4.569778656125918, and the loss is: 5.220912280526238\n",
      "When time is : 2641, get best_k: 4.252060571145888 best_b: -4.569818181817618, and the loss is: 5.220910672054303\n",
      "When time is : 2642, get best_k: 4.252067367588576 best_b: -4.569857707509317, and the loss is: 5.220909063582367\n",
      "When time is : 2643, get best_k: 4.252074164031264 best_b: -4.569897233201016, and the loss is: 5.22090745511043\n",
      "When time is : 2644, get best_k: 4.252080960473951 best_b: -4.569936758892715, and the loss is: 5.22090584663849\n",
      "When time is : 2645, get best_k: 4.252087756916639 best_b: -4.569976284584414, and the loss is: 5.2209042381665505\n",
      "When time is : 2646, get best_k: 4.252094553359327 best_b: -4.5700158102761135, and the loss is: 5.220902629694613\n",
      "When time is : 2647, get best_k: 4.252101349802015 best_b: -4.570055335967813, and the loss is: 5.220901021222681\n",
      "When time is : 2648, get best_k: 4.252108146244702 best_b: -4.570094861659512, and the loss is: 5.220899412750739\n",
      "When time is : 2649, get best_k: 4.25211494268739 best_b: -4.570134387351211, and the loss is: 5.220897804278797\n",
      "When time is : 2650, get best_k: 4.252121739130078 best_b: -4.57017391304291, and the loss is: 5.220896195806868\n",
      "When time is : 2651, get best_k: 4.252128535572766 best_b: -4.570213438734609, and the loss is: 5.220894587334928\n",
      "When time is : 2652, get best_k: 4.252135332015453 best_b: -4.570252964426309, and the loss is: 5.220892978862985\n",
      "When time is : 2653, get best_k: 4.252142128458141 best_b: -4.570292490118008, and the loss is: 5.22089137039105\n",
      "When time is : 2654, get best_k: 4.252148924900829 best_b: -4.570332015809707, and the loss is: 5.220889761919112\n",
      "When time is : 2655, get best_k: 4.252155721343517 best_b: -4.570371541501406, and the loss is: 5.220888153447176\n",
      "When time is : 2656, get best_k: 4.252162517786204 best_b: -4.570411067193105, and the loss is: 5.220886544975232\n",
      "When time is : 2657, get best_k: 4.252169314228892 best_b: -4.5704505928848045, and the loss is: 5.220884936503308\n",
      "When time is : 2658, get best_k: 4.25217611067158 best_b: -4.570490118576504, and the loss is: 5.220883328031371\n",
      "When time is : 2659, get best_k: 4.252182907114268 best_b: -4.570529644268203, and the loss is: 5.220881719559435\n",
      "When time is : 2660, get best_k: 4.252189703556955 best_b: -4.570569169959902, and the loss is: 5.220880111087493\n",
      "When time is : 2661, get best_k: 4.252196499999643 best_b: -4.570608695651601, and the loss is: 5.220878502615554\n",
      "When time is : 2662, get best_k: 4.252203296442331 best_b: -4.5706482213433, and the loss is: 5.220876894143621\n",
      "When time is : 2663, get best_k: 4.252210092885019 best_b: -4.570687747035, and the loss is: 5.220875285671677\n",
      "When time is : 2664, get best_k: 4.252216889327706 best_b: -4.570727272726699, and the loss is: 5.220873677199736\n",
      "When time is : 2665, get best_k: 4.252223685770394 best_b: -4.570766798418398, and the loss is: 5.220872068727806\n",
      "When time is : 2666, get best_k: 4.252230482213082 best_b: -4.570806324110097, and the loss is: 5.220870460255863\n",
      "When time is : 2667, get best_k: 4.25223727865577 best_b: -4.570845849801796, and the loss is: 5.220868851783929\n",
      "When time is : 2668, get best_k: 4.252244075098457 best_b: -4.5708853754934955, and the loss is: 5.220867243311994\n",
      "When time is : 2669, get best_k: 4.252250871541145 best_b: -4.570924901185195, and the loss is: 5.220865634840052\n",
      "When time is : 2670, get best_k: 4.252257667983833 best_b: -4.570964426876894, and the loss is: 5.220864026368115\n",
      "When time is : 2671, get best_k: 4.252264464426521 best_b: -4.571003952568593, and the loss is: 5.220862417896174\n",
      "When time is : 2672, get best_k: 4.252271260869208 best_b: -4.571043478260292, and the loss is: 5.220860809424242\n",
      "When time is : 2673, get best_k: 4.252278057311896 best_b: -4.571083003951991, and the loss is: 5.220859200952298\n",
      "When time is : 2674, get best_k: 4.252284853754584 best_b: -4.571122529643691, and the loss is: 5.220857592480361\n",
      "When time is : 2675, get best_k: 4.252291650197272 best_b: -4.57116205533539, and the loss is: 5.220855984008421\n",
      "When time is : 2676, get best_k: 4.252298446639959 best_b: -4.571201581027089, and the loss is: 5.220854375536488\n",
      "When time is : 2677, get best_k: 4.252305243082647 best_b: -4.571241106718788, and the loss is: 5.220852767064556\n",
      "When time is : 2678, get best_k: 4.252312039525335 best_b: -4.571280632410487, and the loss is: 5.220851158592614\n",
      "When time is : 2679, get best_k: 4.252318835968023 best_b: -4.5713201581021865, and the loss is: 5.220849550120675\n",
      "When time is : 2680, get best_k: 4.25232563241071 best_b: -4.571359683793886, and the loss is: 5.220847941648738\n",
      "When time is : 2681, get best_k: 4.252332428853398 best_b: -4.571399209485585, and the loss is: 5.2208463331768\n",
      "When time is : 2682, get best_k: 4.252339225296086 best_b: -4.571438735177284, and the loss is: 5.220844724704866\n",
      "When time is : 2683, get best_k: 4.252346021738774 best_b: -4.571478260868983, and the loss is: 5.220843116232926\n",
      "When time is : 2684, get best_k: 4.252352818181461 best_b: -4.571517786560682, and the loss is: 5.220841507760987\n",
      "When time is : 2685, get best_k: 4.252359614624149 best_b: -4.571557312252382, and the loss is: 5.220839899289055\n",
      "When time is : 2686, get best_k: 4.252366411066837 best_b: -4.571596837944081, and the loss is: 5.220838290817112\n",
      "When time is : 2687, get best_k: 4.252373207509525 best_b: -4.57163636363578, and the loss is: 5.220836682345179\n",
      "When time is : 2688, get best_k: 4.252380003952212 best_b: -4.571675889327479, and the loss is: 5.2208350738732365\n",
      "When time is : 2689, get best_k: 4.2523868003949 best_b: -4.571715415019178, and the loss is: 5.220833465401304\n",
      "When time is : 2690, get best_k: 4.252393596837588 best_b: -4.5717549407108775, and the loss is: 5.220831856929365\n",
      "When time is : 2691, get best_k: 4.252400393280276 best_b: -4.571794466402577, and the loss is: 5.22083024845743\n",
      "When time is : 2692, get best_k: 4.252407189722963 best_b: -4.571833992094276, and the loss is: 5.220828639985487\n",
      "When time is : 2693, get best_k: 4.252413986165651 best_b: -4.571873517785975, and the loss is: 5.220827031513551\n",
      "When time is : 2694, get best_k: 4.252420782608339 best_b: -4.571913043477674, and the loss is: 5.220825423041618\n",
      "When time is : 2695, get best_k: 4.252427579051027 best_b: -4.571952569169373, and the loss is: 5.220823814569677\n",
      "When time is : 2696, get best_k: 4.252434375493714 best_b: -4.571992094861073, and the loss is: 5.2208222060977345\n",
      "When time is : 2697, get best_k: 4.252441171936402 best_b: -4.572031620552772, and the loss is: 5.2208205976257975\n",
      "When time is : 2698, get best_k: 4.25244796837909 best_b: -4.572071146244471, and the loss is: 5.220818989153864\n",
      "When time is : 2699, get best_k: 4.252454764821778 best_b: -4.57211067193617, and the loss is: 5.220817380681928\n",
      "When time is : 2700, get best_k: 4.252461561264465 best_b: -4.572150197627869, and the loss is: 5.220815772209985\n",
      "When time is : 2701, get best_k: 4.252468357707153 best_b: -4.5721897233195685, and the loss is: 5.220814163738049\n",
      "When time is : 2702, get best_k: 4.252475154149841 best_b: -4.572229249011268, and the loss is: 5.220812555266113\n",
      "When time is : 2703, get best_k: 4.252481950592529 best_b: -4.572268774702967, and the loss is: 5.220810946794176\n",
      "When time is : 2704, get best_k: 4.252488747035216 best_b: -4.572308300394666, and the loss is: 5.220809338322236\n",
      "When time is : 2705, get best_k: 4.252495543477904 best_b: -4.572347826086365, and the loss is: 5.220807729850303\n",
      "When time is : 2706, get best_k: 4.252502339920592 best_b: -4.572387351778064, and the loss is: 5.220806121378361\n",
      "When time is : 2707, get best_k: 4.25250913636328 best_b: -4.572426877469764, and the loss is: 5.22080451290642\n",
      "When time is : 2708, get best_k: 4.252515932805967 best_b: -4.572466403161463, and the loss is: 5.220802904434487\n",
      "When time is : 2709, get best_k: 4.252522729248655 best_b: -4.572505928853162, and the loss is: 5.2208012959625485\n",
      "When time is : 2710, get best_k: 4.252529525691343 best_b: -4.572545454544861, and the loss is: 5.220799687490608\n",
      "When time is : 2711, get best_k: 4.252536322134031 best_b: -4.57258498023656, and the loss is: 5.220798079018673\n",
      "When time is : 2712, get best_k: 4.252543118576718 best_b: -4.5726245059282595, and the loss is: 5.220796470546738\n",
      "When time is : 2713, get best_k: 4.252549915019406 best_b: -4.572664031619959, and the loss is: 5.220794862074801\n",
      "When time is : 2714, get best_k: 4.252556711462094 best_b: -4.572703557311658, and the loss is: 5.220793253602862\n",
      "When time is : 2715, get best_k: 4.252563507904782 best_b: -4.572743083003357, and the loss is: 5.220791645130922\n",
      "When time is : 2716, get best_k: 4.252570304347469 best_b: -4.572782608695056, and the loss is: 5.220790036658988\n",
      "When time is : 2717, get best_k: 4.252577100790157 best_b: -4.572822134386755, and the loss is: 5.220788428187048\n",
      "When time is : 2718, get best_k: 4.252583897232845 best_b: -4.572861660078455, and the loss is: 5.22078681971511\n",
      "When time is : 2719, get best_k: 4.252590693675533 best_b: -4.572901185770154, and the loss is: 5.220785211243176\n",
      "When time is : 2720, get best_k: 4.25259749011822 best_b: -4.572940711461853, and the loss is: 5.220783602771233\n",
      "When time is : 2721, get best_k: 4.252604286560908 best_b: -4.572980237153552, and the loss is: 5.220781994299296\n",
      "When time is : 2722, get best_k: 4.252611083003596 best_b: -4.573019762845251, and the loss is: 5.220780385827365\n",
      "When time is : 2723, get best_k: 4.252617879446284 best_b: -4.5730592885369505, and the loss is: 5.22077877735543\n",
      "When time is : 2724, get best_k: 4.252624675888971 best_b: -4.57309881422865, and the loss is: 5.220777168883486\n",
      "When time is : 2725, get best_k: 4.252631472331659 best_b: -4.573138339920349, and the loss is: 5.220775560411549\n",
      "When time is : 2726, get best_k: 4.252638268774347 best_b: -4.573177865612048, and the loss is: 5.220773951939614\n",
      "When time is : 2727, get best_k: 4.252645065217035 best_b: -4.573217391303747, and the loss is: 5.220772346896181\n",
      "When time is : 2728, get best_k: 4.2526279999996435 best_b: -4.573260869564617, and the loss is: 5.220770740942111\n",
      "When time is : 2729, get best_k: 4.252634796442331 best_b: -4.573300395256316, and the loss is: 5.220769132470175\n",
      "When time is : 2730, get best_k: 4.252641592885019 best_b: -4.5733399209480154, and the loss is: 5.2207675239982345\n",
      "When time is : 2731, get best_k: 4.252648389327707 best_b: -4.573379446639715, and the loss is: 5.220765915526293\n",
      "When time is : 2732, get best_k: 4.2526551857703945 best_b: -4.573418972331414, and the loss is: 5.220764307054363\n",
      "When time is : 2733, get best_k: 4.252661982213082 best_b: -4.573458498023113, and the loss is: 5.2207626985824245\n",
      "When time is : 2734, get best_k: 4.25266877865577 best_b: -4.573498023714812, and the loss is: 5.220761090110492\n",
      "When time is : 2735, get best_k: 4.252675575098458 best_b: -4.573537549406511, and the loss is: 5.22075948163855\n",
      "When time is : 2736, get best_k: 4.2526823715411455 best_b: -4.5735770750982105, and the loss is: 5.220757873166617\n",
      "When time is : 2737, get best_k: 4.252689167983833 best_b: -4.57361660078991, and the loss is: 5.2207562646946775\n",
      "When time is : 2738, get best_k: 4.252695964426521 best_b: -4.573656126481609, and the loss is: 5.220754656222739\n",
      "When time is : 2739, get best_k: 4.252702760869209 best_b: -4.573695652173308, and the loss is: 5.220753047750802\n",
      "When time is : 2740, get best_k: 4.2527095573118965 best_b: -4.573735177865007, and the loss is: 5.220751439278859\n",
      "When time is : 2741, get best_k: 4.252716353754584 best_b: -4.5737747035567065, and the loss is: 5.220749830806924\n",
      "When time is : 2742, get best_k: 4.252723150197272 best_b: -4.573814229248406, and the loss is: 5.220748222334987\n",
      "When time is : 2743, get best_k: 4.25272994663996 best_b: -4.573853754940105, and the loss is: 5.220746613863055\n",
      "When time is : 2744, get best_k: 4.2527367430826475 best_b: -4.573893280631804, and the loss is: 5.220745005391115\n",
      "When time is : 2745, get best_k: 4.252743539525335 best_b: -4.573932806323503, and the loss is: 5.220743396919175\n",
      "When time is : 2746, get best_k: 4.252750335968023 best_b: -4.573972332015202, and the loss is: 5.220741788447239\n",
      "When time is : 2747, get best_k: 4.252757132410711 best_b: -4.5740118577069016, and the loss is: 5.220740179975296\n",
      "When time is : 2748, get best_k: 4.2527639288533985 best_b: -4.574051383398601, and the loss is: 5.220738571503359\n",
      "When time is : 2749, get best_k: 4.252770725296086 best_b: -4.5740909090903, and the loss is: 5.220736963031421\n",
      "When time is : 2750, get best_k: 4.252777521738774 best_b: -4.574130434781999, and the loss is: 5.2207353545594835\n",
      "When time is : 2751, get best_k: 4.252784318181462 best_b: -4.574169960473698, and the loss is: 5.22073374608755\n",
      "When time is : 2752, get best_k: 4.2527911146241495 best_b: -4.5742094861653975, and the loss is: 5.220732137615608\n",
      "When time is : 2753, get best_k: 4.252797911066837 best_b: -4.574249011857097, and the loss is: 5.220730529143678\n",
      "When time is : 2754, get best_k: 4.252804707509525 best_b: -4.574288537548796, and the loss is: 5.220728920671741\n",
      "When time is : 2755, get best_k: 4.252811503952213 best_b: -4.574328063240495, and the loss is: 5.2207273121998\n",
      "When time is : 2756, get best_k: 4.2528183003949005 best_b: -4.574367588932194, and the loss is: 5.220725703727868\n",
      "When time is : 2757, get best_k: 4.252825096837588 best_b: -4.574407114623893, and the loss is: 5.220724095255928\n",
      "When time is : 2758, get best_k: 4.252831893280276 best_b: -4.574446640315593, and the loss is: 5.220722486783988\n",
      "When time is : 2759, get best_k: 4.252838689722964 best_b: -4.574486166007292, and the loss is: 5.220720878312048\n",
      "When time is : 2760, get best_k: 4.2528454861656515 best_b: -4.574525691698991, and the loss is: 5.2207192698401075\n",
      "When time is : 2761, get best_k: 4.252852282608339 best_b: -4.57456521739069, and the loss is: 5.220717661368176\n",
      "When time is : 2762, get best_k: 4.252859079051027 best_b: -4.574604743082389, and the loss is: 5.220716052896241\n",
      "When time is : 2763, get best_k: 4.252865875493715 best_b: -4.5746442687740885, and the loss is: 5.220714444424297\n",
      "When time is : 2764, get best_k: 4.2528726719364025 best_b: -4.574683794465788, and the loss is: 5.220712835952367\n",
      "When time is : 2765, get best_k: 4.25287946837909 best_b: -4.574723320157487, and the loss is: 5.220711227480428\n",
      "When time is : 2766, get best_k: 4.252886264821778 best_b: -4.574762845849186, and the loss is: 5.220709619008481\n",
      "When time is : 2767, get best_k: 4.252893061264466 best_b: -4.574802371540885, and the loss is: 5.2207080105365495\n",
      "When time is : 2768, get best_k: 4.2528998577071535 best_b: -4.574841897232584, and the loss is: 5.220706402064611\n",
      "When time is : 2769, get best_k: 4.252906654149841 best_b: -4.574881422924284, and the loss is: 5.220704793592675\n",
      "When time is : 2770, get best_k: 4.252913450592529 best_b: -4.574920948615983, and the loss is: 5.220703185120736\n",
      "When time is : 2771, get best_k: 4.252920247035217 best_b: -4.574960474307682, and the loss is: 5.220701576648797\n",
      "When time is : 2772, get best_k: 4.2529270434779045 best_b: -4.574999999999381, and the loss is: 5.220699968176863\n",
      "When time is : 2773, get best_k: 4.252933839920592 best_b: -4.57503952569108, and the loss is: 5.220698359704923\n",
      "When time is : 2774, get best_k: 4.25294063636328 best_b: -4.5750790513827795, and the loss is: 5.220696751232987\n",
      "When time is : 2775, get best_k: 4.252947432805968 best_b: -4.575118577074479, and the loss is: 5.220695142761051\n",
      "When time is : 2776, get best_k: 4.2529542292486555 best_b: -4.575158102766178, and the loss is: 5.220693534289109\n",
      "When time is : 2777, get best_k: 4.252961025691343 best_b: -4.575197628457877, and the loss is: 5.220691925817166\n",
      "When time is : 2778, get best_k: 4.252967822134031 best_b: -4.575237154149576, and the loss is: 5.22069031734524\n",
      "When time is : 2779, get best_k: 4.252974618576719 best_b: -4.575276679841275, and the loss is: 5.220688708873301\n",
      "When time is : 2780, get best_k: 4.2529814150194065 best_b: -4.575316205532975, and the loss is: 5.220687100401363\n",
      "When time is : 2781, get best_k: 4.252988211462094 best_b: -4.575355731224674, and the loss is: 5.220685491929425\n",
      "When time is : 2782, get best_k: 4.252995007904782 best_b: -4.575395256916373, and the loss is: 5.2206838834574825\n",
      "When time is : 2783, get best_k: 4.25300180434747 best_b: -4.575434782608072, and the loss is: 5.220682274985548\n",
      "When time is : 2784, get best_k: 4.2530086007901575 best_b: -4.575474308299771, and the loss is: 5.220680666513613\n",
      "When time is : 2785, get best_k: 4.253015397232845 best_b: -4.5755138339914705, and the loss is: 5.220679058041672\n",
      "When time is : 2786, get best_k: 4.253022193675533 best_b: -4.57555335968317, and the loss is: 5.2206774495697355\n",
      "When time is : 2787, get best_k: 4.253028990118221 best_b: -4.575592885374869, and the loss is: 5.220675841097793\n",
      "When time is : 2788, get best_k: 4.2530357865609085 best_b: -4.575632411066568, and the loss is: 5.220674232625861\n",
      "When time is : 2789, get best_k: 4.253042583003596 best_b: -4.575671936758267, and the loss is: 5.220672624153927\n",
      "When time is : 2790, get best_k: 4.253049379446284 best_b: -4.575711462449966, and the loss is: 5.220671015681993\n",
      "When time is : 2791, get best_k: 4.253056175888972 best_b: -4.575750988141666, and the loss is: 5.22066940721005\n",
      "When time is : 2792, get best_k: 4.2530629723316595 best_b: -4.575790513833365, and the loss is: 5.220667798738111\n",
      "When time is : 2793, get best_k: 4.253069768774347 best_b: -4.575830039525064, and the loss is: 5.220666190266173\n",
      "When time is : 2794, get best_k: 4.253076565217035 best_b: -4.575869565216763, and the loss is: 5.220664581794236\n",
      "When time is : 2795, get best_k: 4.253083361659723 best_b: -4.575909090908462, and the loss is: 5.220662973322297\n",
      "When time is : 2796, get best_k: 4.2530901581024105 best_b: -4.5759486166001615, and the loss is: 5.2206613648503595\n",
      "When time is : 2797, get best_k: 4.253096954545098 best_b: -4.575988142291861, and the loss is: 5.220659756378419\n",
      "When time is : 2798, get best_k: 4.253103750987786 best_b: -4.57602766798356, and the loss is: 5.22065814790648\n",
      "When time is : 2799, get best_k: 4.253110547430474 best_b: -4.576067193675259, and the loss is: 5.220656539434545\n",
      "When time is : 2800, get best_k: 4.2531173438731615 best_b: -4.576106719366958, and the loss is: 5.220654930962608\n",
      "When time is : 2801, get best_k: 4.253124140315849 best_b: -4.576146245058657, and the loss is: 5.220653322490677\n",
      "When time is : 2802, get best_k: 4.253130936758537 best_b: -4.576185770750357, and the loss is: 5.2206517140187385\n",
      "When time is : 2803, get best_k: 4.253137733201225 best_b: -4.576225296442056, and the loss is: 5.2206501055467935\n",
      "When time is : 2804, get best_k: 4.2531445296439125 best_b: -4.576264822133755, and the loss is: 5.220648497074863\n",
      "When time is : 2805, get best_k: 4.2531513260866 best_b: -4.576304347825454, and the loss is: 5.220646888602923\n",
      "When time is : 2806, get best_k: 4.253158122529288 best_b: -4.576343873517153, and the loss is: 5.220645280130985\n",
      "When time is : 2807, get best_k: 4.253164918971976 best_b: -4.5763833992088525, and the loss is: 5.220643671659039\n",
      "When time is : 2808, get best_k: 4.2531717154146635 best_b: -4.576422924900552, and the loss is: 5.220642063187114\n",
      "When time is : 2809, get best_k: 4.253178511857351 best_b: -4.576462450592251, and the loss is: 5.22064045471517\n",
      "When time is : 2810, get best_k: 4.253185308300039 best_b: -4.57650197628395, and the loss is: 5.220638846243239\n",
      "When time is : 2811, get best_k: 4.253192104742727 best_b: -4.576541501975649, and the loss is: 5.220637237771296\n",
      "When time is : 2812, get best_k: 4.2531989011854145 best_b: -4.576581027667348, and the loss is: 5.220635629299361\n",
      "When time is : 2813, get best_k: 4.253205697628102 best_b: -4.576620553359048, and the loss is: 5.22063402082742\n",
      "When time is : 2814, get best_k: 4.25321249407079 best_b: -4.576660079050747, and the loss is: 5.2206324123554815\n",
      "When time is : 2815, get best_k: 4.253219290513478 best_b: -4.576699604742446, and the loss is: 5.22063080388355\n",
      "When time is : 2816, get best_k: 4.2532260869561656 best_b: -4.576739130434145, and the loss is: 5.2206291954116075\n",
      "When time is : 2817, get best_k: 4.253232883398853 best_b: -4.576778656125844, and the loss is: 5.220627586939677\n",
      "When time is : 2818, get best_k: 4.253239679841541 best_b: -4.5768181818175435, and the loss is: 5.220625978467736\n",
      "When time is : 2819, get best_k: 4.253246476284229 best_b: -4.576857707509243, and the loss is: 5.2206243699957975\n",
      "When time is : 2820, get best_k: 4.253253272726917 best_b: -4.576897233200942, and the loss is: 5.2206227615238605\n",
      "When time is : 2821, get best_k: 4.253260069169604 best_b: -4.576936758892641, and the loss is: 5.220621153051926\n",
      "When time is : 2822, get best_k: 4.253266865612292 best_b: -4.57697628458434, and the loss is: 5.22061954457998\n",
      "When time is : 2823, get best_k: 4.25327366205498 best_b: -4.577015810276039, and the loss is: 5.22061793610805\n",
      "When time is : 2824, get best_k: 4.253280458497668 best_b: -4.577055335967739, and the loss is: 5.220616327636107\n",
      "When time is : 2825, get best_k: 4.253287254940355 best_b: -4.577094861659438, and the loss is: 5.220614720335772\n",
      "When time is : 2826, get best_k: 4.253270189722964 best_b: -4.577138339920308, and the loss is: 5.220613116638609\n",
      "When time is : 2827, get best_k: 4.253276986165652 best_b: -4.577177865612007, and the loss is: 5.220611508166667\n",
      "When time is : 2828, get best_k: 4.25328378260834 best_b: -4.577217391303706, and the loss is: 5.220609899694737\n",
      "When time is : 2829, get best_k: 4.253290579051027 best_b: -4.577256916995405, and the loss is: 5.220608291222803\n",
      "When time is : 2830, get best_k: 4.253297375493715 best_b: -4.577296442687104, and the loss is: 5.22060668275086\n",
      "When time is : 2831, get best_k: 4.253304171936403 best_b: -4.5773359683788035, and the loss is: 5.220605074278925\n",
      "When time is : 2832, get best_k: 4.253310968379091 best_b: -4.577375494070503, and the loss is: 5.220603465806987\n",
      "When time is : 2833, get best_k: 4.253317764821778 best_b: -4.577415019762202, and the loss is: 5.220601857335045\n",
      "When time is : 2834, get best_k: 4.253324561264466 best_b: -4.577454545453901, and the loss is: 5.220600248863111\n",
      "When time is : 2835, get best_k: 4.253331357707154 best_b: -4.5774940711456, and the loss is: 5.220598640391168\n",
      "When time is : 2836, get best_k: 4.253338154149842 best_b: -4.577533596837299, and the loss is: 5.220597031919232\n",
      "When time is : 2837, get best_k: 4.253344950592529 best_b: -4.577573122528999, and the loss is: 5.220595423447304\n",
      "When time is : 2838, get best_k: 4.253351747035217 best_b: -4.577612648220698, and the loss is: 5.220593814975363\n",
      "When time is : 2839, get best_k: 4.253358543477905 best_b: -4.577652173912397, and the loss is: 5.2205922065034205\n",
      "When time is : 2840, get best_k: 4.253365339920593 best_b: -4.577691699604096, and the loss is: 5.22059059803149\n",
      "When time is : 2841, get best_k: 4.25337213636328 best_b: -4.577731225295795, and the loss is: 5.220588989559553\n",
      "When time is : 2842, get best_k: 4.253378932805968 best_b: -4.5777707509874945, and the loss is: 5.220587381087605\n",
      "When time is : 2843, get best_k: 4.253385729248656 best_b: -4.577810276679194, and the loss is: 5.220585772615672\n",
      "When time is : 2844, get best_k: 4.253392525691344 best_b: -4.577849802370893, and the loss is: 5.220584164143732\n",
      "When time is : 2845, get best_k: 4.253399322134031 best_b: -4.577889328062592, and the loss is: 5.220582555671793\n",
      "When time is : 2846, get best_k: 4.253406118576719 best_b: -4.577928853754291, and the loss is: 5.220580947199856\n",
      "When time is : 2847, get best_k: 4.253412915019407 best_b: -4.57796837944599, and the loss is: 5.220579338727925\n",
      "When time is : 2848, get best_k: 4.253419711462095 best_b: -4.57800790513769, and the loss is: 5.220577730255988\n",
      "When time is : 2849, get best_k: 4.253426507904782 best_b: -4.578047430829389, and the loss is: 5.220576121784047\n",
      "When time is : 2850, get best_k: 4.25343330434747 best_b: -4.578086956521088, and the loss is: 5.2205745133121075\n",
      "When time is : 2851, get best_k: 4.253440100790158 best_b: -4.578126482212787, and the loss is: 5.220572904840175\n",
      "When time is : 2852, get best_k: 4.253446897232846 best_b: -4.578166007904486, and the loss is: 5.220571296368229\n",
      "When time is : 2853, get best_k: 4.253453693675533 best_b: -4.5782055335961855, and the loss is: 5.220569687896303\n",
      "When time is : 2854, get best_k: 4.253460490118221 best_b: -4.578245059287885, and the loss is: 5.2205680794243525\n",
      "When time is : 2855, get best_k: 4.253467286560909 best_b: -4.578284584979584, and the loss is: 5.220566470952418\n",
      "When time is : 2856, get best_k: 4.253474083003597 best_b: -4.578324110671283, and the loss is: 5.220564862480483\n",
      "When time is : 2857, get best_k: 4.253480879446284 best_b: -4.578363636362982, and the loss is: 5.220563254008547\n",
      "When time is : 2858, get best_k: 4.253487675888972 best_b: -4.5784031620546815, and the loss is: 5.220561645536607\n",
      "When time is : 2859, get best_k: 4.25349447233166 best_b: -4.578442687746381, and the loss is: 5.220560037064671\n",
      "When time is : 2860, get best_k: 4.253501268774348 best_b: -4.57848221343808, and the loss is: 5.220558428592732\n",
      "When time is : 2861, get best_k: 4.253508065217035 best_b: -4.578521739129779, and the loss is: 5.220556820120795\n",
      "When time is : 2862, get best_k: 4.253514861659723 best_b: -4.578561264821478, and the loss is: 5.220555211648862\n",
      "When time is : 2863, get best_k: 4.253521658102411 best_b: -4.578600790513177, and the loss is: 5.220553603176921\n",
      "When time is : 2864, get best_k: 4.253528454545099 best_b: -4.5786403162048765, and the loss is: 5.220551994704983\n",
      "When time is : 2865, get best_k: 4.253535250987786 best_b: -4.578679841896576, and the loss is: 5.220550386233043\n",
      "When time is : 2866, get best_k: 4.253542047430474 best_b: -4.578719367588275, and the loss is: 5.220548777761115\n",
      "When time is : 2867, get best_k: 4.253548843873162 best_b: -4.578758893279974, and the loss is: 5.220547169289173\n",
      "When time is : 2868, get best_k: 4.25355564031585 best_b: -4.578798418971673, and the loss is: 5.220545560817234\n",
      "When time is : 2869, get best_k: 4.253562436758537 best_b: -4.5788379446633725, and the loss is: 5.220543952345298\n",
      "When time is : 2870, get best_k: 4.253569233201225 best_b: -4.578877470355072, and the loss is: 5.220542343873363\n",
      "When time is : 2871, get best_k: 4.253576029643913 best_b: -4.578916996046771, and the loss is: 5.220540735401424\n",
      "When time is : 2872, get best_k: 4.253582826086601 best_b: -4.57895652173847, and the loss is: 5.220539126929482\n",
      "When time is : 2873, get best_k: 4.253589622529288 best_b: -4.578996047430169, and the loss is: 5.2205375184575455\n",
      "When time is : 2874, get best_k: 4.253596418971976 best_b: -4.579035573121868, and the loss is: 5.220535909985611\n",
      "When time is : 2875, get best_k: 4.253603215414664 best_b: -4.579075098813568, and the loss is: 5.220534301513667\n",
      "When time is : 2876, get best_k: 4.253610011857352 best_b: -4.579114624505267, and the loss is: 5.22053269304173\n",
      "When time is : 2877, get best_k: 4.253616808300039 best_b: -4.579154150196966, and the loss is: 5.220531084569789\n",
      "When time is : 2878, get best_k: 4.253623604742727 best_b: -4.579193675888665, and the loss is: 5.22052947609786\n",
      "When time is : 2879, get best_k: 4.253630401185415 best_b: -4.579233201580364, and the loss is: 5.220527867625921\n",
      "When time is : 2880, get best_k: 4.253637197628103 best_b: -4.5792727272720635, and the loss is: 5.220526259153983\n",
      "When time is : 2881, get best_k: 4.25364399407079 best_b: -4.579312252963763, and the loss is: 5.220524650682044\n",
      "When time is : 2882, get best_k: 4.253650790513478 best_b: -4.579351778655462, and the loss is: 5.22052304221011\n",
      "When time is : 2883, get best_k: 4.253657586956166 best_b: -4.579391304347161, and the loss is: 5.220521433738168\n",
      "When time is : 2884, get best_k: 4.253664383398854 best_b: -4.57943083003886, and the loss is: 5.220519825266239\n",
      "When time is : 2885, get best_k: 4.253671179841541 best_b: -4.579470355730559, and the loss is: 5.22051821679429\n",
      "When time is : 2886, get best_k: 4.253677976284229 best_b: -4.579509881422259, and the loss is: 5.220516608322365\n",
      "When time is : 2887, get best_k: 4.253684772726917 best_b: -4.579549407113958, and the loss is: 5.2205149998504154\n",
      "When time is : 2888, get best_k: 4.253691569169605 best_b: -4.579588932805657, and the loss is: 5.220513391378482\n",
      "When time is : 2889, get best_k: 4.253698365612292 best_b: -4.579628458497356, and the loss is: 5.220511782906546\n",
      "When time is : 2890, get best_k: 4.25370516205498 best_b: -4.579667984189055, and the loss is: 5.220510174434607\n",
      "When time is : 2891, get best_k: 4.253711958497668 best_b: -4.5797075098807545, and the loss is: 5.220508565962672\n",
      "When time is : 2892, get best_k: 4.253718754940356 best_b: -4.579747035572454, and the loss is: 5.220506957490734\n",
      "When time is : 2893, get best_k: 4.253725551383043 best_b: -4.579786561264153, and the loss is: 5.220505349018799\n",
      "When time is : 2894, get best_k: 4.253732347825731 best_b: -4.579826086955852, and the loss is: 5.220503740546855\n",
      "When time is : 2895, get best_k: 4.253739144268419 best_b: -4.579865612647551, and the loss is: 5.220502132074925\n",
      "When time is : 2896, get best_k: 4.253745940711107 best_b: -4.57990513833925, and the loss is: 5.220500523602983\n",
      "When time is : 2897, get best_k: 4.253752737153794 best_b: -4.57994466403095, and the loss is: 5.220498915131048\n",
      "When time is : 2898, get best_k: 4.253759533596482 best_b: -4.579984189722649, and the loss is: 5.220497306659107\n",
      "When time is : 2899, get best_k: 4.25376633003917 best_b: -4.580023715414348, and the loss is: 5.220495698187172\n",
      "When time is : 2900, get best_k: 4.253773126481858 best_b: -4.580063241106047, and the loss is: 5.220494089715231\n",
      "When time is : 2901, get best_k: 4.253779922924545 best_b: -4.580102766797746, and the loss is: 5.220492481243298\n",
      "When time is : 2902, get best_k: 4.253786719367233 best_b: -4.5801422924894455, and the loss is: 5.220490872771359\n",
      "When time is : 2903, get best_k: 4.253793515809921 best_b: -4.580181818181145, and the loss is: 5.220489264299422\n",
      "When time is : 2904, get best_k: 4.253800312252609 best_b: -4.580221343872844, and the loss is: 5.220487655827485\n",
      "When time is : 2905, get best_k: 4.253807108695296 best_b: -4.580260869564543, and the loss is: 5.22048604735554\n",
      "When time is : 2906, get best_k: 4.253813905137984 best_b: -4.580300395256242, and the loss is: 5.22048443888361\n",
      "When time is : 2907, get best_k: 4.253820701580672 best_b: -4.580339920947941, and the loss is: 5.220482830411668\n",
      "When time is : 2908, get best_k: 4.25382749802336 best_b: -4.580379446639641, and the loss is: 5.220481221939729\n",
      "When time is : 2909, get best_k: 4.253834294466047 best_b: -4.58041897233134, and the loss is: 5.220479613467795\n",
      "When time is : 2910, get best_k: 4.253841090908735 best_b: -4.580458498023039, and the loss is: 5.220478004995857\n",
      "When time is : 2911, get best_k: 4.253847887351423 best_b: -4.580498023714738, and the loss is: 5.220476396523923\n",
      "When time is : 2912, get best_k: 4.253854683794111 best_b: -4.580537549406437, and the loss is: 5.220474788051981\n",
      "When time is : 2913, get best_k: 4.253861480236798 best_b: -4.5805770750981365, and the loss is: 5.220473179580043\n",
      "When time is : 2914, get best_k: 4.253868276679486 best_b: -4.580616600789836, and the loss is: 5.220471571108111\n",
      "When time is : 2915, get best_k: 4.253875073122174 best_b: -4.580656126481535, and the loss is: 5.220469962636172\n",
      "When time is : 2916, get best_k: 4.253881869564862 best_b: -4.580695652173234, and the loss is: 5.220468354164231\n",
      "When time is : 2917, get best_k: 4.2538886660075494 best_b: -4.580735177864933, and the loss is: 5.220466745692292\n",
      "When time is : 2918, get best_k: 4.253895462450237 best_b: -4.580774703556632, and the loss is: 5.220465137220358\n",
      "When time is : 2919, get best_k: 4.253902258892925 best_b: -4.580814229248332, and the loss is: 5.220463528748422\n",
      "When time is : 2920, get best_k: 4.253909055335613 best_b: -4.580853754940031, and the loss is: 5.220461920276479\n",
      "When time is : 2921, get best_k: 4.2539158517783004 best_b: -4.58089328063173, and the loss is: 5.220460311804547\n",
      "When time is : 2922, get best_k: 4.253922648220988 best_b: -4.580932806323429, and the loss is: 5.220458703332608\n",
      "When time is : 2923, get best_k: 4.253929444663676 best_b: -4.580972332015128, and the loss is: 5.220457094860667\n",
      "When time is : 2924, get best_k: 4.253936241106364 best_b: -4.5810118577068275, and the loss is: 5.220455491249813\n",
      "When time is : 2925, get best_k: 4.2539191758889725 best_b: -4.581055335967697, and the loss is: 5.220453883863176\n",
      "When time is : 2926, get best_k: 4.25392597233166 best_b: -4.5810948616593965, and the loss is: 5.220452275391232\n",
      "When time is : 2927, get best_k: 4.253932768774348 best_b: -4.581134387351096, and the loss is: 5.2204506669192945\n",
      "When time is : 2928, get best_k: 4.253939565217036 best_b: -4.581173913042795, and the loss is: 5.220449058447356\n",
      "When time is : 2929, get best_k: 4.2539463616597235 best_b: -4.581213438734494, and the loss is: 5.220447449975423\n",
      "When time is : 2930, get best_k: 4.253953158102411 best_b: -4.581252964426193, and the loss is: 5.2204458415034765\n",
      "When time is : 2931, get best_k: 4.253959954545099 best_b: -4.581292490117892, and the loss is: 5.220444233031542\n",
      "When time is : 2932, get best_k: 4.253966750987787 best_b: -4.581332015809592, and the loss is: 5.220442624559605\n",
      "When time is : 2933, get best_k: 4.2539735474304745 best_b: -4.581371541501291, and the loss is: 5.2204410160876735\n",
      "When time is : 2934, get best_k: 4.253980343873162 best_b: -4.58141106719299, and the loss is: 5.220439407615733\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "When time is : 2935, get best_k: 4.25398714031585 best_b: -4.581450592884689, and the loss is: 5.220437799143788\n",
      "When time is : 2936, get best_k: 4.253993936758538 best_b: -4.581490118576388, and the loss is: 5.220436190671851\n",
      "When time is : 2937, get best_k: 4.2540007332012255 best_b: -4.5815296442680875, and the loss is: 5.2204345821999185\n",
      "When time is : 2938, get best_k: 4.254007529643913 best_b: -4.581569169959787, and the loss is: 5.220432973727987\n",
      "When time is : 2939, get best_k: 4.254014326086601 best_b: -4.581608695651486, and the loss is: 5.220431365256038\n",
      "When time is : 2940, get best_k: 4.254021122529289 best_b: -4.581648221343185, and the loss is: 5.220429756784107\n",
      "When time is : 2941, get best_k: 4.2540279189719765 best_b: -4.581687747034884, and the loss is: 5.220428148312168\n",
      "When time is : 2942, get best_k: 4.254034715414664 best_b: -4.581727272726583, and the loss is: 5.220426539840227\n",
      "When time is : 2943, get best_k: 4.254041511857352 best_b: -4.581766798418283, and the loss is: 5.220424931368298\n",
      "When time is : 2944, get best_k: 4.25404830830004 best_b: -4.581806324109982, and the loss is: 5.220423322896359\n",
      "When time is : 2945, get best_k: 4.2540551047427275 best_b: -4.581845849801681, and the loss is: 5.220421714424414\n",
      "When time is : 2946, get best_k: 4.254061901185415 best_b: -4.58188537549338, and the loss is: 5.220420105952479\n",
      "When time is : 2947, get best_k: 4.254068697628103 best_b: -4.581924901185079, and the loss is: 5.220418497480545\n",
      "When time is : 2948, get best_k: 4.254075494070791 best_b: -4.5819644268767785, and the loss is: 5.220416889008613\n",
      "When time is : 2949, get best_k: 4.2540822905134785 best_b: -4.582003952568478, and the loss is: 5.220415280536668\n",
      "When time is : 2950, get best_k: 4.254089086956166 best_b: -4.582043478260177, and the loss is: 5.220413672064731\n",
      "When time is : 2951, get best_k: 4.254095883398854 best_b: -4.582083003951876, and the loss is: 5.2204120635927955\n",
      "When time is : 2952, get best_k: 4.254102679841542 best_b: -4.582122529643575, and the loss is: 5.220410455120859\n",
      "When time is : 2953, get best_k: 4.2541094762842295 best_b: -4.582162055335274, and the loss is: 5.220408846648918\n",
      "When time is : 2954, get best_k: 4.254116272726917 best_b: -4.582201581026974, and the loss is: 5.220407238176982\n",
      "When time is : 2955, get best_k: 4.254123069169605 best_b: -4.582241106718673, and the loss is: 5.220405629705044\n",
      "When time is : 2956, get best_k: 4.254129865612293 best_b: -4.582280632410372, and the loss is: 5.22040402123311\n",
      "When time is : 2957, get best_k: 4.2541366620549805 best_b: -4.582320158102071, and the loss is: 5.220402412761169\n",
      "When time is : 2958, get best_k: 4.254143458497668 best_b: -4.58235968379377, and the loss is: 5.220400804289236\n",
      "When time is : 2959, get best_k: 4.254150254940356 best_b: -4.5823992094854695, and the loss is: 5.220399195817295\n",
      "When time is : 2960, get best_k: 4.254157051383044 best_b: -4.582438735177169, and the loss is: 5.220397587345359\n",
      "When time is : 2961, get best_k: 4.2541638478257315 best_b: -4.582478260868868, and the loss is: 5.220395978873421\n",
      "When time is : 2962, get best_k: 4.254170644268419 best_b: -4.582517786560567, and the loss is: 5.220394370401485\n",
      "When time is : 2963, get best_k: 4.254177440711107 best_b: -4.582557312252266, and the loss is: 5.220392761929539\n",
      "When time is : 2964, get best_k: 4.254184237153795 best_b: -4.582596837943965, and the loss is: 5.220391153457602\n",
      "When time is : 2965, get best_k: 4.2541910335964825 best_b: -4.582636363635665, and the loss is: 5.22038954498567\n",
      "When time is : 2966, get best_k: 4.25419783003917 best_b: -4.582675889327364, and the loss is: 5.2203879365137285\n",
      "When time is : 2967, get best_k: 4.254204626481858 best_b: -4.582715415019063, and the loss is: 5.220386328041797\n",
      "When time is : 2968, get best_k: 4.254211422924546 best_b: -4.582754940710762, and the loss is: 5.220384719569852\n",
      "When time is : 2969, get best_k: 4.2542182193672335 best_b: -4.582794466402461, and the loss is: 5.220383111097914\n",
      "When time is : 2970, get best_k: 4.254225015809921 best_b: -4.5828339920941605, and the loss is: 5.220381502625988\n",
      "When time is : 2971, get best_k: 4.254231812252609 best_b: -4.58287351778586, and the loss is: 5.22037989415404\n",
      "When time is : 2972, get best_k: 4.254238608695297 best_b: -4.582913043477559, and the loss is: 5.220378285682106\n",
      "When time is : 2973, get best_k: 4.2542454051379845 best_b: -4.582952569169258, and the loss is: 5.2203766772101705\n",
      "When time is : 2974, get best_k: 4.254252201580672 best_b: -4.582992094860957, and the loss is: 5.220375068738225\n",
      "When time is : 2975, get best_k: 4.25425899802336 best_b: -4.5830316205526564, and the loss is: 5.220373460266292\n",
      "When time is : 2976, get best_k: 4.254265794466048 best_b: -4.583071146244356, and the loss is: 5.220371851794355\n",
      "When time is : 2977, get best_k: 4.2542725909087356 best_b: -4.583110671936055, and the loss is: 5.220370243322417\n",
      "When time is : 2978, get best_k: 4.254279387351423 best_b: -4.583150197627754, and the loss is: 5.220368634850483\n",
      "When time is : 2979, get best_k: 4.254286183794111 best_b: -4.583189723319453, and the loss is: 5.220367026378547\n",
      "When time is : 2980, get best_k: 4.254292980236799 best_b: -4.583229249011152, and the loss is: 5.2203654179066135\n",
      "When time is : 2981, get best_k: 4.2542997766794866 best_b: -4.5832687747028515, and the loss is: 5.220363809434668\n",
      "When time is : 2982, get best_k: 4.254306573122174 best_b: -4.583308300394551, and the loss is: 5.220362200962729\n",
      "When time is : 2983, get best_k: 4.254313369564862 best_b: -4.58334782608625, and the loss is: 5.220360592490791\n",
      "When time is : 2984, get best_k: 4.25432016600755 best_b: -4.583387351777949, and the loss is: 5.220358984018858\n",
      "When time is : 2985, get best_k: 4.254326962450238 best_b: -4.583426877469648, and the loss is: 5.220357375546925\n",
      "When time is : 2986, get best_k: 4.254333758892925 best_b: -4.5834664031613475, and the loss is: 5.220355767074985\n",
      "When time is : 2987, get best_k: 4.254340555335613 best_b: -4.583505928853047, and the loss is: 5.220354158603046\n",
      "When time is : 2988, get best_k: 4.254347351778301 best_b: -4.583545454544746, and the loss is: 5.220352550131105\n",
      "When time is : 2989, get best_k: 4.254354148220989 best_b: -4.583584980236445, and the loss is: 5.220350941659168\n",
      "When time is : 2990, get best_k: 4.254360944663676 best_b: -4.583624505928144, and the loss is: 5.2203493331872295\n",
      "When time is : 2991, get best_k: 4.254367741106364 best_b: -4.583664031619843, and the loss is: 5.220347724715296\n",
      "When time is : 2992, get best_k: 4.254374537549052 best_b: -4.5837035573115426, and the loss is: 5.220346116243356\n",
      "When time is : 2993, get best_k: 4.25438133399174 best_b: -4.583743083003242, and the loss is: 5.220344507771421\n",
      "When time is : 2994, get best_k: 4.254388130434427 best_b: -4.583782608694941, and the loss is: 5.220342899299482\n",
      "When time is : 2995, get best_k: 4.254394926877115 best_b: -4.58382213438664, and the loss is: 5.22034129082754\n",
      "When time is : 2996, get best_k: 4.254401723319803 best_b: -4.583861660078339, and the loss is: 5.2203396823556\n",
      "When time is : 2997, get best_k: 4.254408519762491 best_b: -4.5839011857700385, and the loss is: 5.220338073883667\n",
      "When time is : 2998, get best_k: 4.254415316205178 best_b: -4.583940711461738, and the loss is: 5.220336465411726\n",
      "When time is : 2999, get best_k: 4.254422112647866 best_b: -4.583980237153437, and the loss is: 5.220334856939792\n"
     ]
    }
   ],
   "source": [
    "k = 1\n",
    "b = -5\n",
    "\n",
    "loops = 3000\n",
    "learning_rate = 1e-3\n",
    "min_loss = float('inf')\n",
    "\n",
    "for i in range(loops):\n",
    "    y_hat = [k * x_i + b for x_i in X_rm]\n",
    "    current_loss = loss(X_rm, y, y_hat)\n",
    "\n",
    "    if min_loss > current_loss:\n",
    "        min_loss = current_loss\n",
    "        print(\n",
    "            'When time is : {}, get best_k: {} best_b: {}, and the loss is: {}'\n",
    "            .format(i, k, b, min_loss))\n",
    "    k = k - partial_k(X_rm, y, y_hat) * learning_rate\n",
    "    b = b - partial_b(X_rm, y, y_hat) * learning_rate"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.collections.PathCollection at 0x7fa066257690>"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAW4AAAD2CAYAAAD24G0VAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO2df5RU5Znnv08Vt7Eac6hm7XFDCUocF44IbYceNYOZFdSQjIH0+ANjTMwkzri78SQHzWFDxgQahxmJnWh2dsdszGpiYnQhajqgyeDEHxPlxB/dNqLswCYTRCzMBgeaDFBCdfe7f1Tf6lu33vfe9966P6uezznQ3VV1733v7a7vfer7Ps/zkhACDMMwTHrIxD0AhmEYxhss3AzDMCmDhZthGCZlsHAzDMOkDBZuhmGYlDEl7AOcdtpp4qyzzgr7MAzDME3F0NDQO0KITtlzoQv3WWedhcHBwbAPwzAM01QQ0T7Vc2yVMAzDpAwWboZhmJTBws0wDJMyWLgZhmFSBgs3wzBMygg9q4SJn4HhIvq37cGBkRJm5nNYvWwuersLcQ/LN0GeT5TXptXHbe6nOFJClghjQlS/thsZlEbHIQSQJcJ1F87Cht4FDR1bti2AQH8H67fuwuH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CcOAcTIt0A7hVC/BbAgwCWxDyeUCCiDCrn9mzMQwmLdQD+sxDidgC7AXwm5vEEjhBiA4CfAfgLAA8IIY7qbsvCXeEyADcT0bMAziei/xXzeMLgB0TURURZAL0AXo17QCHxawDvm/i+B+lqcOaFDwJ4UTRvIUYHgAUTf68XAmjW89wBYDaAu7xsxAU4Nojo2YlJn6aCiM4D8BAAArBFCHFbzEMKBSJ6D4D7AZyOiiV0tRCiGO+ogoeI/hbAoBDisbjHEgZEdAGA76Jil/wSwJ95iUjTAhGtB/BrIcQPPG3Hws0wDJMu2CphGIZJGSzcDMMwKYOFm2EYJmWwcDMMw6QMFm6GYZiUwcLNMAyTMv4/OODTsxTp2scAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 432x288 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "X_rm = X[:, 5]\n",
    "price_by_random_k_and_b = [price(r, k, b) for r in X_rm]\n",
    "\n",
    "draw_rm_and_price()\n",
    "plt.scatter(X_rm, price_by_random_k_and_b)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "**8.上述整个过程还涉及到如下问题：**\n",
    "- 初始化问题：如何选择最初的 k 和 b 值\n",
    "    - 与训练速度，及最终性能有关\n",
    "- 模型定义问题：price 线性函数\n",
    "    - 针对特定问题特定的模型：线性、多项式、神经网络等\n",
    "    - 更复杂的函数可能导致过拟合\n",
    "- 代价函数：loss 函数\n",
    "    - 损失函数的选择，哪种损失函数更好\n",
    "- 求解方法：梯度下降等\n",
    "    - 快速的更新求解\n",
    "- 优化问题：学习速率\n",
    "    - 学习速率如何随着学习过程进行调整\n",
    "- 监督学习：学习目标是使损失值最小，及预测目标与实际目标更接近"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.4"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  },
  "varInspector": {
   "cols": {
    "lenName": 16,
    "lenType": 16,
    "lenVar": 40
   },
   "kernels_config": {
    "python": {
     "delete_cmd_postfix": "",
     "delete_cmd_prefix": "del ",
     "library": "var_list.py",
     "varRefreshCmd": "print(var_dic_list())"
    },
    "r": {
     "delete_cmd_postfix": ") ",
     "delete_cmd_prefix": "rm(",
     "library": "var_list.r",
     "varRefreshCmd": "cat(var_dic_list()) "
    }
   },
   "types_to_exclude": [
    "module",
    "function",
    "builtin_function_or_method",
    "instance",
    "_Feature"
   ],
   "window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
